/* ============================================================================
   login-redesign.css
   Scoped redesign for the Wizuda CFS auth flow (Login, Reset/Change Password,
   2FA, OTP, Register). Loaded AFTER the legacy vendor login.css.

   All rules are namespaced under .auth-* wrapper classes so the legacy
   .login.login-with-news-feed theme rules never apply to the new markup.
   Wizuda palette: lime #A4D65E, dark navy/teal. No one-off hex drift.
   ============================================================================ */

:root {
    --auth-accent: #A4D65E;            /* Wizuda lime */
    --auth-primary: #12876a;           /* teal-green primary action */
    --auth-primary-dark: #0e6e57;
    --auth-ink: #1f2a30;               /* card text */
    --auth-muted: #6b7780;             /* secondary text */
    --auth-border: #e2e7eb;
    --auth-field-bg: #f6f8f9;
    --auth-marketing-1: #0e2f34;       /* top-left dark teal */
    --auth-marketing-2: #0a1c24;
    --auth-marketing-3: #060f15;       /* bottom navy */
}

/* ---- Shell -------------------------------------------------------------- */

body.pace-top {
    background: #ffffff;
}

.auth-shell {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* ---- Left marketing panel ---------------------------------------------- */

.auth-marketing {
    position: relative;
    flex: 1 1 58%;
    overflow: hidden;
    padding: 56px 64px;
    color: rgba(255, 255, 255, 0.82);
    background:
        radial-gradient(circle at 60% 55%, rgba(164, 214, 94, 0.18) 0%, rgba(164, 214, 94, 0) 45%),
        linear-gradient(135deg, var(--auth-marketing-1) 0%, var(--auth-marketing-2) 55%, var(--auth-marketing-3) 100%);
    display: flex;
    flex-direction: column;
}

.auth-marketing__logo img {
    height: 34px;
    width: auto;
}

.auth-marketing__headline {
    margin-top: 36px;
    font-size: 40px;
    line-height: 1.12;
    font-weight: 700;
    color: #ffffff;
}

.auth-accent {
    color: var(--auth-accent);
}

.auth-marketing__subhead {
    margin-top: 18px;
    font-size: 17px;
    font-weight: 600;
    color: #ffffff;
}

.auth-marketing__blurb {
    margin-top: 10px;
    max-width: 440px;
    font-size: 13.5px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.68);
}

/* feature grid */
.auth-feature-grid {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 28px;
    max-width: 460px;
}

.auth-feature {
    display: flex;
    align-items: center;
    font-size: 13.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.auth-feature .fa {
    color: var(--auth-accent);
    margin-right: 10px;
    font-size: 15px;
    width: 18px;
    text-align: center;
}

/* central shield illustration */
.auth-shield {
    position: relative;
    flex: 1 1 auto;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 12px 0;
}

.auth-shield::before {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(164, 214, 94, 0.28) 0%, rgba(164, 214, 94, 0) 70%);
}

.auth-shield svg {
    position: relative;
    width: 190px;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(164, 214, 94, 0.25));
}

/* trust pill */
.auth-trust-pill {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.72);
    max-width: 460px;
}

.auth-trust-pill .fa {
    color: var(--auth-accent);
    font-size: 18px;
}

/* ---- Right card pane ---------------------------------------------------- */

.auth-card-pane {
    flex: 0 0 480px;
    max-width: 480px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 48px;
    overflow-y: auto;
}

.auth-card {
    width: 100%;
    margin: 0 auto;
    max-width: 360px;
    color: var(--auth-ink);
}

/* optional tenant logo above the card */
.auth-card-logo {
    text-align: center;
    margin-bottom: 22px;
}

.auth-card-logo img {
    max-height: 90px;
    max-width: 240px;
    height: auto;
    width: auto;
}

/* "Secure Login" badge */
.auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(18, 135, 106, 0.1);
    color: var(--auth-primary);
    font-size: 12px;
    font-weight: 700;
}

.auth-badge .fa {
    font-size: 12px;
}

.auth-heading {
    margin: 16px 0 24px;
    font-size: 21px;
    font-weight: 700;
    color: var(--auth-ink);
}

.auth-label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--auth-ink);
    margin-bottom: 6px;
}

/* input with leading icon + optional trailing toggle */
.auth-field {
    position: relative;
    margin-bottom: 16px;
}

.auth-field__icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9aa3ab;
    font-size: 14px;
    pointer-events: none;
}

.auth-card .form-control,
.auth-card .form-control-lg {
    height: 46px;
    border-radius: 9px;
    border: 1px solid var(--auth-border);
    background: var(--auth-field-bg);
    padding-left: 40px;
    font-size: 14px;
    box-shadow: none;
}

.auth-card .form-control:focus {
    border-color: var(--auth-primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(18, 135, 106, 0.12);
}

.auth-pw-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #9aa3ab;
    padding: 6px 8px;
    cursor: pointer;
}

.auth-pw-toggle:hover {
    color: var(--auth-primary);
}

/* reassurance line */
.auth-reassurance {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0 20px;
    font-size: 12px;
    color: var(--auth-muted);
}

.auth-reassurance .fa {
    color: var(--auth-primary);
}

/* primary action */
.auth-card .btn-auth-primary {
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 9px;
    font-size: 14.5px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, var(--auth-primary) 0%, var(--auth-primary-dark) 100%);
    transition: filter 0.15s ease;
}

.auth-card .btn-auth-primary:hover,
.auth-card .btn-auth-primary:focus {
    filter: brightness(1.06);
    color: #ffffff;
}

/* secondary / office365 button */
.auth-card .btn-auth-secondary {
    width: 100%;
    height: 46px;
    margin-top: 12px;
    border-radius: 9px;
    border: 1px solid var(--auth-border);
    background: #ffffff;
    color: var(--auth-ink);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-card .btn-auth-secondary img {
    height: 18px;
}

/* links */
.auth-link {
    display: inline-block;
    margin-top: 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--auth-primary);
}

.auth-link:hover {
    color: var(--auth-primary-dark);
    text-decoration: underline;
}

.auth-card .field-validation-error {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #e50000;
}

/* ---- Shared footer (divider + compliance + support + copyright) -------- */

.auth-footer {
    width: 100%;
    max-width: 360px;
    margin: 28px auto 0;
}

.auth-divider {
    position: relative;
    text-align: center;
    margin: 8px 0 18px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #9aa3ab;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 28%;
    height: 1px;
    background: var(--auth-border);
}

.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }

.auth-compliance {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.auth-compliance__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 999px;
    border: 1px solid var(--auth-border);
    background: #f6f8f9;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--auth-muted);
}

.auth-compliance__badge .fa {
    color: var(--auth-primary);
}

.auth-support {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #f6f8f9;
    border: 1px solid var(--auth-border);
    font-size: 12.5px;
    color: var(--auth-ink);
}

.auth-support .fa {
    color: var(--auth-primary);
    font-size: 18px;
}

.auth-support a {
    color: var(--auth-primary);
    font-weight: 600;
}

.auth-copyright {
    margin-top: 16px;
    text-align: center;
    font-size: 11.5px;
    color: #9aa3ab;
}

.auth-copyright a {
    color: #9aa3ab;
}

/* misc helpers reused by 2FA / OTP / PasswordChange bodies */
.auth-card h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--auth-ink);
}

.auth-error-text {
    color: #c70202;
    text-align: center;
    font-size: 13px;
}

/* ---- Terms & Conditions modal ------------------------------------------ */

.auth-modal .modal-dialog {
    max-width: 560px;
    margin: 40px auto;
}

.auth-modal .modal-content {
    border: 0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(6, 15, 21, 0.28);
}

.auth-modal .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    background: #ffffff;
    border-bottom: 1px solid var(--auth-border);
    border-top: 3px solid var(--auth-primary);
}

.auth-modal__brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-modal__brand img {
    max-height: 30px;
    width: auto;
}

.auth-modal__title {
    font-size: 15px;
    font-weight: 700;
    color: var(--auth-ink);
}

.auth-modal .modal-header .close {
    opacity: 0.6;
    color: var(--auth-muted);
    font-size: 22px;
    text-shadow: none;
    margin: 0;
}

.auth-modal .modal-header .close:hover {
    opacity: 1;
    color: var(--auth-ink);
}

.auth-modal .modal-body {
    max-height: 460px;
    overflow-y: auto;
    padding: 22px;
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--auth-ink);
}

.auth-modal .modal-footer {
    padding: 14px 22px;
    border-top: 1px solid var(--auth-border);
    background: #fafbfc;
}

/* primary button usable outside .auth-card (modal footer) */
.auth-modal .btn-auth-primary {
    min-width: 120px;
    height: 42px;
    border: 0;
    border-radius: 9px;
    font-size: 13.5px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, var(--auth-primary) 0%, var(--auth-primary-dark) 100%);
}

.auth-modal .btn-auth-primary:hover,
.auth-modal .btn-auth-primary:focus {
    filter: brightness(1.06);
    color: #ffffff;
}

/* ---- Responsive --------------------------------------------------------- */

@media (max-width: 991px) {
    .auth-shell {
        display: block;
    }

    .auth-marketing {
        display: none;
    }

    .auth-card-pane {
        flex: 1 1 100%;
        max-width: 100%;
        min-height: 100vh;
        padding: 40px 24px;
    }
}
