/**
 * FastHR auth — shared professional design system (login + signup).
 */

:root {
    --auth-navy: #1F3A5F;
    --auth-navy-deep: #142A47;
    --auth-navy-light: #2E5280;
    --auth-teal: #2F8F9D;
    --auth-accent: #2563EB;
    --auth-ink: #111827;
    --auth-muted: #475569;
    --auth-border: #CBD5E1;
    --auth-input-border: #CBD5E1;
    --auth-surface: #FFFFFF;
    --auth-radius-lg: 16px;
    --auth-radius-md: 10px;
    --auth-radius-pill: 999px;
    --auth-shadow-card: 0 12px 40px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(15, 23, 42, 0.04);
    --auth-shadow-btn: 0 4px 14px rgba(31, 58, 95, 0.28);
    --auth-font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
    --auth-font-body: 'Inter', 'Source Sans 3', system-ui, sans-serif;
}

/* Form panel background — clean white HR workspace feel */
.auth-split--login .auth-split-form,
.auth-split--signup .auth-split-form {
    background:
        radial-gradient(ellipse 80% 60% at 100% 0%, rgba(31, 58, 95, 0.04) 0%, transparent 55%),
        linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
}

@media (min-width: 901px) {
    .auth-split.auth-split--login {
        grid-template-columns: minmax(300px, 38%) 1fr;
    }
}

/* Topbar */
.auth-pro-topbar {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    margin-bottom: 0.6rem;
    font-size: 0.84rem;
    color: var(--auth-muted);
}

.auth-pro-topbar-brand {
    font-family: var(--auth-font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--auth-navy);
    text-decoration: none;
    letter-spacing: -0.01em;
}

.auth-pro-topbar a {
    color: var(--auth-navy);
    font-weight: 600;
    text-decoration: none;
}

.auth-pro-topbar a:hover {
    color: var(--auth-navy-light);
    text-decoration: underline;
}

/* Card */
.auth-pro-card {
    width: 100%;
    padding: 1.35rem 1.65rem 1.15rem;
    border-radius: var(--auth-radius-lg);
    background: var(--auth-surface);
    border: 1px solid var(--auth-border);
    box-shadow: var(--auth-shadow-card);
}

/* Header */
.auth-pro-header {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--auth-border);
}

.auth-pro-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--auth-navy) 0%, var(--auth-navy-light) 100%);
    color: #fff;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    font-size: 1.05rem;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(31, 58, 95, 0.2);
}

.auth-pro-header h1 {
    font-family: var(--auth-font-display);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--auth-navy);
    margin: 0 0 0.25rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.auth-pro-header p,
.auth-pro-header .auth-pro-subtitle {
    margin: 0;
    font-size: 0.875rem;
    color: var(--auth-muted);
    line-height: 1.45;
}

.auth-pro-pill {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.25rem;
    padding: 0.18rem 0.55rem;
    font-size: 0.7rem;
    font-weight: 600;
    background: rgba(47, 143, 157, 0.1);
    color: var(--auth-teal);
}

.auth-pro-pill--muted {
    background: #f1f5f9;
    color: var(--auth-muted);
}

/* Form sections */
.auth-pro-fieldset {
    margin: 0 0 0.8rem;
    padding: 0;
    border: none;
}

.auth-pro-fieldset:last-of-type {
    margin-bottom: 0.6rem;
}

.auth-pro-legend {
    display: block;
    width: 100%;
    margin: 0 0 0.5rem;
    padding: 0;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--auth-muted);
}

.auth-pro-legend i {
    margin-right: 0.35rem;
    color: var(--auth-navy);
    font-size: 0.7rem;
}

/* Labels & inputs */
.auth-pro-form label,
.auth-pro-form .auth-pro-label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--auth-ink);
    letter-spacing: 0.01em;
}

.auth-pro-form .form-group {
    margin-bottom: 0;
}

.auth-pro-form .auth-input-wrap input,
.auth-pro-form .auth-plan-select,
.auth-pro-form select.form-control {
    width: 100%;
    padding: 0.5rem 0.8rem 0.5rem 2rem;
    font-family: var(--auth-font-body);
    font-size: 0.86rem;
    line-height: 1.4;
    color: var(--auth-ink);
    border: 1px solid var(--auth-input-border);
    border-radius: var(--auth-radius-md);
    background: #fff;
    -webkit-transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.auth-pro-form .auth-plan-select,
.auth-pro-form select.form-control {
    padding-left: 0.8rem;
}

.auth-pro-form .auth-input-wrap > i:first-child {
    left: 0.8rem;
    color: #94a3b8;
    font-size: 0.78rem;
}

.auth-pro-form .auth-input-wrap input:hover,
.auth-pro-form .auth-plan-select:hover {
    border-color: #c5cdd8;
}

.auth-pro-form .auth-input-wrap input:focus,
.auth-pro-form .auth-plan-select:focus,
.auth-pro-form select.form-control:focus {
    outline: none;
    border-color: var(--auth-navy);
    box-shadow: 0 0 0 3px rgba(31, 58, 95, 0.12);
    background: #fff;
}

.auth-pro-form .auth-input-wrap input::-webkit-input-placeholder {
    color: #a8b4c4;
}

.auth-pro-form .auth-input-wrap input::placeholder {
    color: #a8b4c4;
}

.auth-pro-form .auth-input-wrap--password input {
    padding-right: 2.85rem;
}

.auth-pro-form .auth-password-toggle {
    right: 0.55rem;
    color: #94a3b8;
    border-radius: 8px;
}

.auth-pro-form .auth-password-toggle:hover {
    color: var(--auth-navy);
    background: #f1f5f9;
}

/* Grid */
.auth-pro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem 0.85rem;
}

.auth-pro-grid .auth-span-full {
    grid-column: 1 / -1;
}

/* Password label row */
.auth-pro-label-row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    margin-bottom: 0.35rem;
}

.auth-pro-label-row label {
    margin-bottom: 0;
}

.auth-pro-help-link {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--auth-navy);
    text-decoration: none;
}

.auth-pro-help-link:hover {
    color: var(--auth-navy-light);
    text-decoration: underline;
}

/* Buttons — Classic navy primary */
.auth-pro-btn {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.68rem 1.15rem;
    font-family: var(--auth-font-body);
    font-size: 0.925rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #fff;
    background: linear-gradient(180deg, var(--auth-navy-light) 0%, var(--auth-navy) 100%);
    border: 1px solid var(--auth-navy-deep);
    border-radius: var(--auth-radius-pill);
    cursor: pointer;
    -webkit-transition: background 0.2s, box-shadow 0.2s, -webkit-transform 0.15s;
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}

.auth-pro-btn:hover {
    background: var(--auth-navy-deep);
    box-shadow: var(--auth-shadow-btn);
    color: #fff;
}

.auth-pro-btn i {
    font-size: 0.9rem;
    -webkit-transition: -webkit-transform 0.2s;
    transition: transform 0.2s;
}

.auth-pro-btn:hover i {
    -webkit-transform: translateX(2px);
    transform: translateX(2px);
}

.auth-pro-btn--sso {
    background: #fff;
    color: var(--auth-ink);
    border: 1px solid var(--auth-input-border);
    border-radius: var(--auth-radius-md);
    font-weight: 600;
    font-size: 0.92rem;
    padding: 0.7rem 1rem;
}

.auth-pro-btn--sso:hover {
    background: #f8fafc;
    border-color: #c5cdd8;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
    color: var(--auth-ink);
}

.auth-pro-btn--sso i {
    color: var(--auth-navy);
    margin-right: 0.15rem;
}

/* Divider */
.auth-pro-divider {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    margin: 0.75rem 0 0.85rem;
    font-size: 0.76rem;
    font-weight: 500;
    color: #94a3b8;
}

.auth-pro-divider::before,
.auth-pro-divider::after {
    content: '';
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    height: 1px;
    background: var(--auth-border);
}

.auth-pro-divider span {
    padding: 0 0.85rem;
}

/* Footer */
.auth-pro-footer {
    margin-top: 0.85rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--auth-border);
    text-align: center;
    font-size: 0.875rem;
    color: var(--auth-muted);
}

.auth-pro-footer a {
    color: var(--auth-navy);
    font-weight: 600;
    text-decoration: none;
}

.auth-pro-footer a:hover {
    color: var(--auth-navy-light);
    text-decoration: underline;
}

/* Trust strip */
.auth-pro-trust {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 0.5rem 0.9rem;
    margin-top: 0.65rem;
    padding-top: 0.65rem;
}

.auth-pro-trust span {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    color: var(--auth-muted);
    white-space: nowrap;
}

.auth-pro-trust i {
    color: var(--auth-navy);
    font-size: 0.72rem;
}

/* Brand panel */
.auth-pro-brand h2 {
    font-family: var(--auth-font-display);
    font-size: clamp(1.5rem, 2.2vw, 1.9rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.auth-pro-eyebrow {
    display: inline-block;
    margin-top: 1rem;
    margin-bottom: 0;
    padding: 0.3rem 0.75rem;
    border-radius: var(--auth-radius-pill);
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.auth-pro-brand .auth-split-features li {
    font-size: 0.88rem;
    padding: 0.32rem 0;
}

.auth-pro-brand .auth-feature-icon {
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.14);
    color: #BFDBFE;
}

/* Start mode (signup) */
.auth-pro-start-mode {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 0;
    padding: 0.25rem;
    background: #f1f5f9;
    border-radius: 11px;
}

.auth-pro-start-mode .auth-start-mode-option {
    padding: 0.55rem 0.65rem;
    border: 2px solid transparent;
    border-radius: 9px;
    background: transparent;
    cursor: pointer;
    -webkit-transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.auth-pro-start-mode .auth-start-mode-option.is-active {
    background: #fff;
    border-color: var(--auth-border);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.07);
}

.auth-pro-start-mode .auth-start-mode-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--auth-ink);
}

.auth-pro-start-mode .auth-start-mode-title i {
    color: var(--auth-teal);
    margin-right: 0.3rem;
}

.auth-pro-start-mode .auth-start-mode-desc {
    font-size: 0.68rem;
    color: var(--auth-muted);
    margin-top: 0.12rem;
}

/* Actions block */
.auth-pro-actions {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f1f5f9;
}

.auth-pro-legal {
    margin: 0.5rem 0 0;
    font-size: 0.68rem;
    color: #94a3b8;
    line-height: 1.4;
    text-align: center;
}

@media (max-width: 900px) {
    .auth-pro-card {
        padding: 1.4rem 1.25rem 1.25rem;
        border-radius: 18px;
    }

    .auth-pro-grid {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    .auth-pro-header h1 {
        font-size: 1.4rem;
    }

    .auth-pro-trust {
        gap: 0.5rem 0.85rem;
    }

    .auth-pro-brand .auth-brand-glow {
        opacity: 0.45;
    }
}

@media (min-width: 901px) and (max-height: 880px) {
    .auth-pro-card {
        padding: 1.35rem 1.65rem 1.15rem;
    }

    .auth-pro-header {
        margin-bottom: 1rem;
        padding-bottom: 0.9rem;
    }

    .auth-pro-header h1 {
        font-size: 1.45rem;
    }

    .auth-pro-form .auth-input-wrap input,
    .auth-pro-form .auth-plan-select {
        padding-top: 0.52rem;
        padding-bottom: 0.52rem;
        font-size: 0.86rem;
    }

    .auth-pro-fieldset {
        margin-bottom: 0.9rem;
    }

    .auth-pro-btn {
        padding: 0.68rem 1.2rem;
        font-size: 0.92rem;
    }
}
