/* ======================================================
   Auth Pages — Questo Hub
   Consistent with Citation & Drugs dark theme design
   ====================================================== */

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
}

/* ===== Root Variables ===== */
:root {
    --primary: #111c33;
    --gold: #f9df7b;
    --accent: #0d9488;

    --bg: #020617;
    --card-bg: rgba(17, 28, 51, 0.95);

    --text-primary: #e5e7eb;
    --text-secondary: #dbeafe;
    --text-muted: #94a3b8;

    --border: rgba(255, 255, 255, 0.12);
    --border-subtle: rgba(255, 255, 255, 0.08);

    --success: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;
}

/* ===== Page Layout ===== */
body {
    min-height: 100vh;
    min-height: 100dvh;
    background: linear-gradient(135deg, #0f172a 0%, #020617 60%);
    color: var(--text-primary);
    overflow-x: hidden;
}

/* ===== Auth Page Wrapper ===== */
.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== Hero Section ===== */
.auth-hero {
    background: linear-gradient(135deg, #0f172a 0%, #0c1a2e 40%, #132f4c 100%);
    padding: 60px 0 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.auth-hero::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -30%;
    width: 160%;
    height: 200%;
    background: radial-gradient(ellipse at center,
            rgba(13, 148, 136, 0.06) 0%,
            transparent 60%);
    pointer-events: none;
}

.auth-hero-inner {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 500;
    background: rgba(13, 148, 136, 0.12);
    color: var(--accent);
    margin-bottom: 18px;
    border: 1px solid rgba(13, 148, 136, 0.2);
}

.auth-hero h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.auth-hero-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 520px;
    margin: 0 auto;
}

/* ===== Container ===== */
.auth-container {
    max-width: 560px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

.auth-container.wide {
    max-width: 640px;
}

/* ===== Section Card ===== */
.auth-section {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 32px;
    margin-bottom: 24px;
    animation: fadeSlideUp 0.5s ease both;
}

.auth-section:nth-child(2) {
    animation-delay: 0.15s;
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Section Header ===== */
.section-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 28px;
}

.section-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(13, 148, 136, 0.1);
    border: 1px solid rgba(13, 148, 136, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent);
    font-size: 16px;
}

.section-header h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 4px;
    text-align: left;
}

.section-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
    text-align: left;
}

/* ===== Form Grid ===== */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-grid>* {
    min-width: 0;
}

.full-width {
    grid-column: 1 / -1;
}

/* ===== Form Groups ===== */
.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.form-group label {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.required-star {
    color: var(--danger);
}

/* ===== Input Styles ===== */
.input-wrapper {
    position: relative;
}

.input-wrapper>i:first-of-type {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    font-size: 14px;
    pointer-events: none;
    z-index: 1;
}

.form-group input,
.form-group select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 14px 10px 40px;
    width: 100%;
    min-width: 0;
    font-size: 0.85rem;
    font-family: "Inter", sans-serif;
    color: var(--text-primary);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.form-group input::placeholder {
    color: rgba(148, 163, 184, 0.5);
    font-size: 0.82rem;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.form-group input.valid {
    border-color: var(--success);
}

.form-group input.invalid {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Status Icon (check mark) */
.status-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%) scale(0.7);
    color: var(--success);
    opacity: 0;
    transition: 0.25s;
    pointer-events: none;
}

input.valid~.status-icon {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

/* Select dropdown styling */
.form-group select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.form-group select option {
    background: var(--primary);
    color: var(--text-primary);
}

/* ===== Error Messages ===== */
.field-error {
    font-size: 0.78rem;
    color: var(--danger);
    margin-top: 5px;
    opacity: 0;
    transform: translateY(-4px);
    transition: 0.25s;
}

.field-error.show,
.error.show {
    opacity: 1;
    transform: translateY(0);
}

.error {
    font-size: 0.78rem;
    color: var(--danger);
    margin-top: 5px;
    opacity: 0;
    transform: translateY(-4px);
    transition: 0.25s;
}

.hint {
    display: block;
    margin-top: 5px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ===== Password Section ===== */
.password-box {
    position: relative;
}

.toggle-eye {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: var(--text-muted);
    cursor: pointer;
    opacity: 0.6;
    transition: 0.2s;
    z-index: 1;
}

.toggle-eye:hover {
    opacity: 1;
    color: var(--accent);
}

.toggle-eye.active {
    color: var(--accent);
    opacity: 1;
}

/* Password Strength */
.strength {
    height: 4px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    margin-top: 8px;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0%;
    border-radius: 4px;
    transition: 0.4s;
}

.strength-weak {
    width: 33%;
    background: var(--danger);
}

.strength-medium {
    width: 66%;
    background: var(--warning);
}

.strength-strong {
    width: 100%;
    background: var(--success);
}

.strength-text {
    font-size: 0.75rem;
    margin-top: 4px;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.3s ease;
}

.strength-text.weak {
    color: var(--danger);
}

.strength-text.medium {
    color: var(--warning);
}

.strength-text.strong {
    color: var(--success);
}

/* Password Rules */
.password-rules {
    margin-top: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.password-rules div {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 3px;
    transition: all 0.3s ease;
}

.password-rules i {
    font-size: 8px;
    transition: all 0.3s ease;
}

.password-rules div::before {
    content: "○";
    font-size: 8px;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.password-rules .ok {
    color: var(--success);
}

.password-rules .ok::before {
    content: "✓";
    color: var(--success);
    font-weight: bold;
}

.password-rules .fail {
    color: var(--danger);
}

.password-rules .fail::before {
    content: "✗";
    color: var(--danger);
}

/* ===== Terms Checkbox ===== */
.terms-group {
    margin-top: 4px;
}

.terms-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.78rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1.6;
}

.terms-label input {
    display: none;
}

.custom-check {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.25s;
    flex-shrink: 0;
    margin-top: 2px;
}

.custom-check::after {
    content: "✔";
    font-size: 10px;
    color: #fff;
    opacity: 0;
    transform: scale(0.5);
    transition: 0.25s;
}

.terms-label input:checked+.custom-check {
    background: var(--accent);
    border-color: var(--accent);
}

.terms-label input:checked+.custom-check::after {
    opacity: 1;
    transform: scale(1);
}

.terms-label:hover .custom-check {
    border-color: var(--accent);
}

.terms-label a {
    color: var(--accent);
    text-decoration: none;
}

.terms-label a:hover {
    text-decoration: underline;
}

/* ===== Buttons ===== */
.auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px 24px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #0d9488, #00a896);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    font-family: "Inter", sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.2);
    margin-top: 8px;
}

.auth-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #00d4b8, #00b8a4);
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.3);
    transform: translateY(-1px);
}

.auth-btn:active:not(:disabled) {
    transform: translateY(0);
}

.auth-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: none;
    color: var(--text-muted);
}

.auth-btn.secondary {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    box-shadow: none;
}

.auth-btn.secondary:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: none;
}

.auth-btn.loading {
    cursor: wait;
    pointer-events: none;
}

/* ===== Login Options Row ===== */
.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.remember-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--text-muted);
    cursor: pointer;
}

.remember-label input {
    display: none;
}

.remember-label .custom-check {
    width: 14px;
    height: 14px;
}

.remember-label input:checked+.custom-check {
    background: var(--accent);
    border-color: var(--accent);
}

.remember-label input:checked+.custom-check::after {
    opacity: 1;
    transform: scale(1);
}

.forgot-link {
    color: var(--accent);
    font-size: 0.78rem;
    text-decoration: none;
    transition: 0.2s;
}

.forgot-link:hover {
    color: var(--gold);
    text-decoration: underline;
}

/* ===== Separator ===== */
.separator {
    display: flex;
    align-items: center;
    margin: 20px 0;
    gap: 14px;
}

.separator::before,
.separator::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}

.separator span {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
}

/* ===== Social Button ===== */
.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: 0.25s;
    cursor: pointer;
}

.social-btn:hover {
    border-color: var(--accent);
    background: rgba(13, 148, 136, 0.08);
    transform: translateY(-1px);
}

.social-btn i {
    font-size: 15px;
}

.social-btn.google i {
    background: linear-gradient(135deg, #4285f4, #34a853, #fbbc05, #ea4335);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.social-btn.facebook i {
    color: #1877F2;
}

.social-btn.facebook:hover {
    border-color: #1877F2;
    background: rgba(24, 119, 242, 0.08);
}

/* ===== Auth Links ===== */
.auth-link-text {
    text-align: center;
    margin-top: 16px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.auth-link-text a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.auth-link-text a:hover {
    text-decoration: underline;
}

/* ===== Success Message ===== */
.success-message {
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 0.82rem;
    color: var(--success);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ===== Verify Icon ===== */
.verify-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: rgba(13, 148, 136, 0.1);
    border: 1px solid rgba(13, 148, 136, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.verify-icon i {
    font-size: 22px;
    color: var(--accent);
}

.verify-message {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 16px;
}

/* ===== Verify Actions ===== */
.verify-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.resend-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #0d9488, #00a896);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: "Inter", sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.2);
    margin: 0;
}

.resend-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #00d4b8, #00b8a4);
    transform: translateY(-1px);
}

.resend-btn.countdown-active {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.7;
    box-shadow: none;
}

.resend-btn.countdown-active:hover {
    transform: none;
}

.logout-btn {
    width: 100%;
    padding: 11px;
    border-radius: 10px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    font-family: "Inter", sans-serif;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
}

/* ===== Back to Login ===== */
.back-to-login {
    text-align: center;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
}

.back-to-login a {
    color: var(--text-muted);
    font-size: 0.82rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
}

.back-to-login a:hover {
    color: var(--accent);
}

.back-to-login a i {
    font-size: 11px;
}

/* ===== Username Suggestions ===== */
.username-suggestions {
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.username-suggestions.hidden {
    display: none;
}

.username-suggestions span {
    padding: 4px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    cursor: pointer;
    font-size: 0.75rem;
    color: var(--text-primary);
    transition: 0.2s;
}

.username-suggestions span:hover {
    border-color: var(--accent);
    background: rgba(13, 148, 136, 0.1);
}

/* ===== Logo (for centered pages) ===== */
.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
}

.auth-logo .logo-symbol {
    width: 36px;
    height: 36px;
    background: rgba(13, 148, 136, 0.12);
    border: 1px solid rgba(13, 148, 136, 0.25);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 16px;
}

.auth-logo .logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.auth-logo .logo-text span {
    color: var(--gold);
}

/* ===== STEP WIZARD (for register/onboarding) ===== */
.step {
    display: none;
    animation: fadeSlide 0.5s ease forwards;
    pointer-events: none;
}

.step.active {
    display: block;
    pointer-events: auto;
}

.step.active>* {
    opacity: 0;
    animation: staggerFade 0.3s ease forwards;
}

.step.active>*:nth-child(1) {
    animation-delay: 0.05s;
}

.step.active>*:nth-child(2) {
    animation-delay: 0.1s;
}

.step.active>*:nth-child(3) {
    animation-delay: 0.15s;
}

.step.active>*:nth-child(4) {
    animation-delay: 0.2s;
}

.step.active>*:nth-child(5) {
    animation-delay: 0.25s;
}

.step.active>*:nth-child(6) {
    animation-delay: 0.3s;
}

.step.active>*:nth-child(7) {
    animation-delay: 0.35s;
}

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes staggerFade {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Progress Bar ===== */
.progress {
    margin-top: 20px;
    height: 3px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    overflow: hidden;
}

.bar {
    height: 100%;
    width: 50%;
    background: linear-gradient(90deg, var(--accent), #00d4b8);
    transition: 0.4s;
    border-radius: 3px;
}

.progress-text {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 6px;
    text-align: center;
}

/* ===== Back Button ===== */
.back-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.25s;
    z-index: 5;
    padding: 0;
}

.back-btn i {
    font-size: 13px;
    color: var(--text-primary);
}

.back-btn:hover {
    background: rgba(13, 148, 136, 0.1);
    border-color: var(--accent);
}

.back-btn.hidden {
    opacity: 0;
    pointer-events: none;
}

/* ===== Options & Roles Grid ===== */
.options,
.roles {
    display: grid;
    gap: 12px;
}

.roles {
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 16px;
}

.option,
.role {
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
    color: var(--text-primary);
    font-size: 0.85rem;
}

.role {
    justify-content: center;
}

.option i {
    font-size: 16px;
    color: var(--accent);
}

.option:hover,
.role:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.option.active,
.role.active {
    border-color: var(--accent);
    background: rgba(13, 148, 136, 0.1);
}

/* ===== Review Box ===== */
.review-box {
    margin-top: 16px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.02);
}

.review-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed var(--border-subtle);
}

.review-item:last-child {
    border-bottom: none;
}

.review-item span {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.review-item strong {
    color: var(--text-primary);
    font-size: 0.8rem;
}

/* ===== Hidden Utility ===== */
.hidden {
    display: none !important;
}

/* ===== Field Wrapper ===== */
.field {
    position: relative;
    margin-bottom: 16px;
}

.input-icon {
    position: relative;
}

.input-icon>i:first-of-type {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    font-size: 14px;
    pointer-events: none;
    z-index: 1;
}

/* Legacy input support inside .field */
.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field input[type="date"] {
    width: 100%;
    padding: 10px 14px 10px 40px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-family: "Inter", sans-serif;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input::placeholder {
    color: rgba(148, 163, 184, 0.5);
    font-size: 0.82rem;
}

.field input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.field input.valid {
    border-color: var(--success);
}

.field input.invalid {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.field label {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
    display: block;
}

.field select {
    width: 100%;
    padding: 10px 14px 10px 40px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-family: "Inter", sans-serif;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.field select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.field select option {
    background: var(--primary);
    color: var(--text-primary);
}

/* ===== 2FA styles ===== */
.auth-2fa-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== Responsive — Tablets ===== */
@media (max-width: 768px) {
    .auth-hero h1 {
        font-size: 1.8rem;
    }

    .auth-hero-desc {
        font-size: 0.85rem;
    }

    .auth-section {
        padding: 24px 18px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        gap: 10px;
    }

    .login-options {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .roles {
        grid-template-columns: 1fr;
    }

    .verify-icon {
        width: 52px;
        height: 52px;
    }

    .verify-icon i {
        font-size: 20px;
    }
}

/* ===== Responsive — Mobile ===== */
@media (max-width: 480px) {
    .auth-hero {
        padding: 40px 0 35px;
    }

    .auth-hero h1 {
        font-size: 1.5rem;
    }

    .auth-container {
        padding: 24px 14px 60px;
    }

    .auth-section {
        padding: 20px 14px;
        border-radius: 10px;
    }

    .auth-badge {
        font-size: 0.72rem;
    }
}

/* Style the webkit calendar picker indicator to match our theme */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(47%) sepia(87%) saturate(415%) hue-rotate(128deg) brightness(91%) contrast(92%);
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}