:root {
    --auth-primary: #2563eb;
    --auth-primary-hover: #1d4ed8;
    --auth-bg: #f8fafc;
    --auth-border: #e2e8f0;
    --auth-border-focus: #94a3b8;
    --auth-text-main: #0f172a;
    --auth-text-muted: #64748b;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    box-shadow: none !important;
    text-shadow: none !important;
}

body,
html {
    height: 100%;
    margin: 0;
    font-family: "Outfit", sans-serif;
    background-color: var(--auth-bg);
    color: var(--auth-text-main);
    font-size: 0.9rem;
}

/* Pure Light Minimal centring container */
.auth-bg {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--auth-bg);
    padding: 1rem;
}

.auth-content {
    width: 100%;
    max-width: 400px;
    z-index: 2;
}

/* Shared flat clean card (No shadows, precise slim borders) */
.auth-card {
    background-color: #ffffff;
    border-radius: 4px !important;
    border: 1px solid var(--auth-border) !important;
    padding: 1.75rem 1.5rem;
    width: 100%;
}

/* Input field overrides for absolute minimal style */
.auth-card .form-control {
    border-radius: 4px !important;
    border: 1px solid var(--auth-border) !important;
    font-size: 0.875rem;
    padding: 0.45rem 0.75rem;
    color: var(--auth-text-main);
    background-color: #ffffff;
    transition: border-color 0.15s ease-in-out;
}

.auth-card .form-control:focus {
    border-color: var(--auth-border-focus) !important;
    background-color: #ffffff;
}

.auth-card .input-group-text {
    background-color: var(--auth-bg);
    border: 1px solid var(--auth-border) !important;
    border-right: none !important;
    border-radius: 4px 0 0 4px !important;
    color: var(--auth-text-muted);
    font-size: 0.85rem;
    padding: 0.45rem 0.75rem;
}

.auth-card .input-group .form-control {
    border-left: none !important;
    border-radius: 0 4px 4px 0 !important;
}

/* Compact form label typography */
.auth-card .form-label {
    font-weight: 500;
    font-size: 0.8rem;
    color: var(--auth-text-muted);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Flat Primary Button with zero shadow */
.auth-card .btn-primary,
.auth-card .btn-success {
    background-color: var(--auth-primary) !important;
    border: 1px solid var(--auth-primary) !important;
    border-radius: 4px !important;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    transition: background-color 0.15s ease-in-out;
    color: #ffffff !important;
}

.auth-card .btn-primary:hover,
.auth-card .btn-success:hover {
    background-color: var(--auth-primary-hover) !important;
    border-color: var(--auth-primary-hover) !important;
}

.auth-card .btn-outline-primary {
    border: 1px solid var(--auth-border) !important;
    color: var(--auth-text-muted) !important;
    border-radius: 4px !important;
    font-weight: 500;
    font-size: 0.85rem;
    padding: 0.45rem 0.75rem;
    background-color: #ffffff;
    transition: all 0.15s ease-in-out;
}

.auth-card .btn-outline-primary:hover {
    background-color: var(--auth-bg) !important;
    color: var(--auth-primary) !important;
}

/* Minimal clean footer */
.auth-footer {
    text-align: center;
    padding-top: 1.5rem;
    color: var(--auth-text-muted);
    font-size: 0.75rem;
}

.auth-footer strong {
    color: var(--auth-text-main);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-tabs {
    display: flex;
    border-bottom: 1px solid var(--auth-border);
    margin-bottom: 1.25rem;
    gap: 4px;
}

.auth-tabs .tab-btn {
    flex: 1;
    padding: 0.5rem 0.25rem;
    border: none;
    background: transparent;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--auth-text-muted);
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    text-align: center;
    border-bottom: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.auth-tabs .tab-btn.active {
    color: var(--auth-primary);
    border-bottom-color: var(--auth-primary);
}

.auth-tabs .tab-btn:hover:not(.active) {
    color: var(--auth-text-main);
    background-color: var(--auth-bg);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.25s ease-in-out;
}

/* ── OTP specific ────────────────────────────── */
.otp-input-group {
    display: none;
}

.otp-input-group.show {
    display: block;
    animation: fadeIn 0.25s ease-in-out;
}

/* ── Resend timer ────────────────────────────── */
.resend-timer {
    font-size: 0.8rem;
    color: var(--auth-text-muted);
    text-align: center;
}

.resend-timer a {
    color: var(--auth-primary);
    font-weight: 600;
    text-decoration: none;
}

.resend-timer a.disabled {
    pointer-events: none;
    color: var(--auth-text-muted);
}

/* ── Action link styling ────────────────────── */
#forgotPasswordLink,
#backToLoginLink {
    color: var(--auth-primary);
    font-weight: 500;
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.15s ease-in-out;
}

#forgotPasswordLink:hover,
#backToLoginLink:hover {
    color: var(--auth-primary-hover);
}

/* ── Flat Premium Header ──────────────────────────── */
.auth-brand-name {
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--auth-text-main);
    letter-spacing: -0.01em;
    margin-bottom: 2px;
}

.auth-brand-sub {
    font-size: 0.75rem;
    color: var(--auth-text-muted);
    font-weight: 500;
}

/* reset page */
.reset-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.reset-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: var(--auth-bg);
    border: 1px solid var(--auth-border);
    border-radius: 50%;
    color: var(--auth-primary);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.reset-header h2 {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--auth-text-main);
    margin-bottom: 0.25rem;
}

.reset-header p {
    font-size: 0.78rem;
    color: var(--auth-text-muted);
    line-height: 1.4;
    margin-bottom: 0;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}
