/* ==========================================================================
   Members sign-in card (`mlog`)
   The look used by the Book a Table sign-in page (/members/sign-in). Kept in
   one file so any page that has to ask a member to sign in — the sign-in page
   itself, the Book a Lesson gate — renders exactly the same card.
   ========================================================================== */
.mlog {
    padding: 64px 0px;
    background: #FFFFFF;
}

.mlog-inner-first {
    width: 100%;
    max-width: 674px;
    text-align: center;
    margin: auto;
    padding: 0 20px;
}

.mlog-inner {
    max-width: 620px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}

.mlog-title {
    font-size: 45px;
    font-weight: 700;
    color: #131413;
    margin: 30px 0 16px;
}

.mlog-title span {
    color: #267043;
}

.mlog-sub {
    color: #424342;
    font-size: 20px;
    margin: 0 0 40px;
    line-height: 1.5;
    opacity: 80%;
}

.mlog-card {
    background: #F9F9F9;
    border: 1px solid #E9E9E9;
    border-radius: 16px;
    padding: 30px;
    text-align: left;
}

/* .mlog-forgot is display:block, so it needs [hidden] to win. */
.mlog [hidden] {
    display: none !important;
}

.mlog-tabs {
    display: flex;
    gap: 6px;
    background: #FFFFFF;
    border: 1px solid #E4E4E4;
    border-radius: 12px;
    padding: 6px;
    margin: 0 0 24px;
}

.mlog-tab {
    flex: 1;
    border: none;
    background: transparent;
    border-radius: 8px;
    padding: 12px 10px;
    font-size: 15px;
    font-weight: 600;
    color: #525252;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s;
}

.mlog-tab:hover {
    color: #131413;
}

.mlog-tab[aria-selected="true"] {
    background: #267043;
    color: #FFFFFF;
}

.mlog-tab:focus-visible {
    outline: 2px solid #131413;
    outline-offset: 2px;
}

.mlog-hint {
    font-size: 14px;
    color: #525252;
    margin: -4px 0 16px;
    text-align: right;
}

.mlog-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #131413;
    margin: 0 0 10px;
}

.mlog-input {
    width: 100%;
    border: 1px solid #E4E4E4;
    border-radius: 10px;
    padding: 16px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.15s;
    margin-bottom: 24px;
    background: #FFFFFF
}

.mlog-input:focus {
    border-color: #267043;
}

.mlog-forgot {
    display: block;
    text-align: right;
    font-size: 14px;
    font-weight: 600;
    color: #131413;
    text-decoration: none;
    margin: -4px 0 16px;
}

.mlog-forgot:hover {
    text-decoration: underline;
}

.mlog-btn {
    width: 100%;
    border: none;
    border-radius: 10px;
    padding: 15px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.mlog-btn-green {
    background: #3F7818;
    color: #fff;
    margin-bottom: 12px;
}

.mlog-btn-green:hover {
    background: #4f9624;
}

.mlog-btn-orange {
    background: #FF9811;
    color: #131413;
}

.mlog-btn-orange:hover {
    background: #d97e12;
}

.mlog-foot {
    text-align: center;
    font-size: 16px;
    color: #525252;
    margin-top: 30px;
}

.mlog-foot a {
    color: #3F7818;
    font-weight: 700;
    text-decoration: none;
}

.mlog-err {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #b91c1c;
    font-size: 13px;
    padding: 10px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
}

.mlog-ok {
    background: #dcfce7;
    border: 1px solid #86efac;
    color: #15803d;
    font-size: 13px;
    padding: 10px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
}

/* ---------- In-page gates (Book a Lesson) ----------
   These post over AJAX, so each field sits in a .sb-form-group that owns the
   message under it. The field spacing moves to the wrapper so the message
   stays tight against its own input. */
.mlog-card .sb-form-group {
    margin-bottom: 24px;
}

.mlog-card .sb-form-group .mlog-input {
    margin-bottom: 0;
}

.mlog-card .mlog-input.is-invalid {
    border-color: #dc2626;
    background-image: none;
}

@media (max-width: 640px) {
    .mlog {
        padding: 40px 0;
    }

    .mlog-title {
        font-size: 30px;
    }

    .mlog-sub {
        font-size: 16px;
        margin-bottom: 28px;
    }

    .mlog-card {
        padding: 22px;
    }
}
