/* ============================================================
   LOGIN PAGE — Premium branded member login
   ============================================================ */

/* Split layout: branding left, form right */
.login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.login-split {
    display: flex;
    flex: 1;
    min-height: 100vh;
}

/* ── Left panel: branding ── */
.login-brand {
    position: relative;
    flex: 0 0 45%;
    background: linear-gradient(135deg, #1a3a2a 0%, #2d6b4a 50%, #1a3a2a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2.5rem;
    overflow: hidden;
}

.login-brand__overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 70%, rgba(94, 206, 123, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.login-brand__content {
    position: relative;
    z-index: 1;
    max-width: 400px;
    text-align: center;
    color: #fff;
}

.login-brand__logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 2rem;
    filter: brightness(0) invert(1);
}

.login-brand__title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 1rem;
    line-height: 1.2;
}

.login-brand__sub {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0 0 2rem;
}

.login-brand__portrait {
    margin: 0 auto 1.25rem;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(94, 206, 123, 0.5);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.login-brand__portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.login-brand__coach-note {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 0.5rem;
}

.login-brand__coach-sig {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    color: rgba(94, 206, 123, 0.8);
    font-size: 0.9rem;
    margin: 0;
}

/* ── Right panel: form ── */
.login-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2.5rem;
    background: #fafaf8;
}

.login-form-panel__inner {
    width: 100%;
    max-width: 420px;
}

.login-form__heading {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a3a2a;
    margin: 0 0 1.5rem;
}

/* Error message */
.login-form__error {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.login-form__error svg {
    flex-shrink: 0;
}

/* Form fields */
.login-form__field {
    margin-bottom: 1.25rem;
}

.login-form__field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.4rem;
    letter-spacing: 0.01em;
}

.login-form__field input[type="text"],
.login-form__field input[type="password"],
.login-form__field input[type="email"] {
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    border: 1.5px solid #d1d5db;
    border-radius: 10px;
    background: #fff;
    color: #1a1a1a;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

.login-form__field input:focus {
    outline: none;
    border-color: #2d6b4a;
    box-shadow: 0 0 0 3px rgba(45, 107, 74, 0.12);
}

.login-form__field input::placeholder {
    color: #9ca3af;
}

/* Password field with toggle */
.login-form__password-wrap {
    position: relative;
}

.login-form__password-wrap input {
    padding-right: 3rem;
}

.login-form__toggle-pw {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
    color: #9ca3af;
    transition: color 0.2s;
    line-height: 0;
}

.login-form__toggle-pw:hover {
    color: #2d6b4a;
}

/* Remember me + forgot password row */
.login-form__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.login-form__remember {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: #555;
}

.login-form__remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #2d6b4a;
    cursor: pointer;
}

.login-form__forgot {
    font-size: 0.85rem;
    color: #2d6b4a;
    text-decoration: none;
    font-weight: 500;
}

.login-form__forgot:hover {
    text-decoration: underline;
}

/* Submit button */
.login-form__submit {
    width: 100%;
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    color: #1a3a2a;
    background: linear-gradient(135deg, #5ece7b 0%, #4abb68 100%);
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
    letter-spacing: 0.01em;
}

.login-form__submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(94, 206, 123, 0.35);
    background: linear-gradient(135deg, #6fd98c 0%, #5ece7b 100%);
}

.login-form__submit:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Divider */
.login-form__divider {
    position: relative;
    text-align: center;
    margin: 2rem 0 1.5rem;
}

.login-form__divider::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: #e5e7eb;
}

.login-form__divider span {
    position: relative;
    background: #fafaf8;
    padding: 0 1rem;
    color: #9ca3af;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Alternative actions */
.login-form__alt-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.login-form__link-programs,
.login-form__link-deal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
}

.login-form__link-programs {
    background: #fff;
    border: 1.5px solid #2d6b4a;
    color: #2d6b4a;
}

.login-form__link-programs:hover {
    background: #f0fdf4;
    transform: translateY(-1px);
}

.login-form__link-deal {
    background: transparent;
    color: #555;
    border: 1.5px solid #e5e7eb;
}

.login-form__link-deal:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    transform: translateY(-1px);
}

.login-form__link-programs svg,
.login-form__link-deal svg {
    flex-shrink: 0;
    transition: transform 0.2s;
}

.login-form__link-programs:hover svg,
.login-form__link-deal:hover svg {
    transform: translateX(3px);
}

/* ── Mobile: stack vertically ── */
@media (max-width: 768px) {
    .login-split {
        flex-direction: column;
        min-height: auto;
    }

    .login-brand {
        flex: none;
        padding: 2rem 1.5rem;
        min-height: auto;
    }

    .login-brand__title {
        font-size: 1.8rem;
    }

    .login-brand__sub {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .login-brand__portrait {
        width: 80px;
        height: 80px;
    }

    .login-brand__coach-note,
    .login-brand__coach-sig {
        font-size: 0.85rem;
    }

    .login-form-panel {
        padding: 2rem 1.5rem;
    }

    .login-form__heading {
        font-size: 1.5rem;
    }
}

/* ── Hide site header/footer chrome on login page ── */
.login-page ~ .site-footer,
body:has(.login-page) .site-header {
    /* Keep header but simplify */
}

/* ── Tablet tweaks ── */
@media (min-width: 769px) and (max-width: 1024px) {
    .login-brand {
        flex: 0 0 40%;
        padding: 2rem;
    }

    .login-brand__title {
        font-size: 2rem;
    }
}
