/* ============================================================
   login.css
   Workflow.ng — standalone auth pages (Login now; the same shell
   works for SignUp/Recover later without change).

   Loaded AFTER landing-theme.css (see _Layout_auth.cshtml), so it
   inherits every --wf-* token and .wf-btn-solid / .wf-hero-badge
   straight from the shared theme. Only the "login-" prefixed rules
   below are new, purpose-built for this page's split brand/form
   layout — same authoring style as description.css.
   ============================================================ */

.login-body {
    background: var(--wf-bg-soft);
    min-height: 100vh;
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}

.login-shell {
    width: 100%;
    max-width: 940px;
    background: #fff;
    border-radius: 22px;
    box-shadow: var(--wf-shadow);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

/* ============================================================
   Brand panel (left) — same dark gradient + card language as
   Browse Services/Description's "How it works" sidebar card, so
   the auth flow still reads as part of the same product.
============================================================ */
.login-brand {
    background: linear-gradient(160deg, var(--wf-primary-darker), var(--wf-primary-dark));
    color: #eaf3ef;
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.login-brand-mark {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -.2px;
}

    .login-brand-mark .bi {
        font-size: 1.35rem;
    }

.login-brand-copy {
    margin: 40px 0;
}

.login-brand-title {
    font-size: 1.7rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 12px;
}

.login-brand-subtitle {
    font-size: .92rem;
    color: #cfe3da;
    line-height: 1.6;
    margin: 0;
}

.login-brand-points {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.login-brand-point {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: .87rem;
    color: #dcece5;
}

    .login-brand-point .bi {
        flex: none;
        width: 28px;
        height: 28px;
        border-radius: 8px;
        background: rgba(255,255,255,.12);
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: .85rem;
    }

    .login-brand-point span {
        padding-top: 4px;
    }

/* ============================================================
   Form panel (right)
============================================================ */
.login-panel {
    padding: 48px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-panel-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--wf-ink);
    margin-bottom: 6px;
}

.login-panel-subtitle {
    font-size: .9rem;
    color: var(--wf-muted);
    margin-bottom: 28px;
}

.login-field {
    margin-bottom: 18px;
}

.login-field-label {
    display: block;
    font-size: .82rem;
    font-weight: 700;
    color: var(--wf-ink);
    margin-bottom: 7px;
}

.login-input-group {
    position: relative;
}

.login-input {
    width: 100%;
    border: 1px solid var(--wf-line);
    background: var(--wf-bg-soft);
    border-radius: 10px;
    padding: 11px 14px;
    font-size: .92rem;
    color: var(--wf-ink);
    transition: all .18s ease;
}

    .login-input:focus {
        outline: none;
        border-color: var(--wf-primary);
        background: #fff;
        box-shadow: 0 0 0 3px var(--wf-accent-light);
    }

.login-input-group .login-input {
    padding-right: 42px;
}

.login-toggle-password {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--wf-muted);
    cursor: pointer;
}

    .login-toggle-password:hover {
        color: var(--wf-primary);
    }

.login-row-between {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin: -8px 0 18px 0;
}

.login-forgot-link {
    font-size: .82rem;
    font-weight: 600;
    color: var(--wf-primary);
    text-decoration: none;
}

    .login-forgot-link:hover {
        text-decoration: underline;
    }

.login-error {
    font-size: .82rem;
    color: #c0392b;
    margin: -6px 0 14px 0;
    min-height: 0;
}

    .login-error:empty {
        display: none;
    }

.login-submit-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: .95rem;
}

.login-submit-btn .login-btn-loader {
    width: 16px;
    height: 16px;
    display: none;
}

.login-footer-note {
    text-align: center;
    font-size: .87rem;
    color: var(--wf-muted);
    margin: 22px 0 0 0;
}

    .login-footer-note a {
        color: var(--wf-primary);
        font-weight: 700;
        text-decoration: none;
    }

        .login-footer-note a:hover {
            text-decoration: underline;
        }

/* ============================================================
   Responsive
============================================================ */
@media (max-width: 860px) {
    .login-shell {
        grid-template-columns: 1fr;
        max-width: 440px;
    }

    .login-brand {
        padding: 32px 32px 28px 32px;
    }

    .login-brand-copy {
        margin: 20px 0;
    }

    .login-brand-title {
        font-size: 1.35rem;
    }

    .login-brand-points {
        display: none;
    }

    .login-panel {
        padding: 36px 32px 40px 32px;
    }
}

@media (max-width: 420px) {
    .login-page {
        padding: 0;
    }

    .login-shell {
        border-radius: 0;
        min-height: 100vh;
    }

    .login-brand {
        padding: 28px 24px 22px 24px;
    }

    .login-panel {
        padding: 30px 24px 36px 24px;
    }
}
