/* === Auth Page Styles === */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a3c5e 0%, #2a5580 50%, #4a6fa5 100%);
    padding: 20px;
}

.auth-container {
    background: var(--background);
    border-radius: 16px;
    padding: 48px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.auth-logo {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo .logo-icon {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.5rem;
    color: white;
}

.auth-logo h1 {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 4px;
}

.auth-logo p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* === Login Tabs === */
.auth-tabs {
    display: flex;
    border-bottom: 2px solid var(--border);
    margin-bottom: 24px;
}

.auth-tab {
    flex: 1;
    padding: 12px 16px;
    background: none;
    border: none;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.auth-tab:hover {
    color: var(--primary);
}

.auth-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 600;
}

/* === Email Step === */
.auth-step {
    display: none;
}

.auth-step.active {
    display: block;
}

.auth-step h2 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    text-align: center;
}

.auth-step .subtitle {
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 24px;
    font-size: 0.9rem;
}

/* === OTP Input Boxes === */
.otp-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 24px;
}

.otp-inputs input {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    outline: none;
    transition: var(--transition);
    color: var(--primary);
}

.otp-inputs input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 60, 94, 0.1);
}

.otp-inputs input.filled {
    border-color: var(--success);
    background: rgba(46, 204, 113, 0.05);
}

/* === Resend OTP === */
.resend-section {
    text-align: center;
    margin-top: 20px;
}

.resend-section p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.resend-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 500;
    cursor: pointer;
    font-size: 0.85rem;
}

.resend-btn:disabled {
    color: var(--text-muted);
    cursor: not-allowed;
}

.countdown {
    color: var(--primary);
    font-weight: 600;
}

/* === Auth Error Message === */
.auth-error {
    background: rgba(231, 76, 60, 0.08);
    border: 1px solid rgba(231, 76, 60, 0.2);
    color: var(--error);
    padding: 10px 16px;
    border-radius: var(--radius);
    font-size: 0.85rem;
    margin-bottom: 16px;
    display: none;
    text-align: center;
}

.auth-error.visible {
    display: block;
}

/* === Auth Button === */
.auth-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-btn:hover {
    background: var(--primary-light);
}

.auth-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* === Input Group === */
.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text);
}

.input-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
    font-family: var(--font);
}

.input-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 60, 94, 0.1);
}

.input-group input.error {
    border-color: var(--error);
}

.input-group .field-error {
    color: var(--error);
    font-size: 0.8rem;
    margin-top: 4px;
    display: none;
}

.input-group .field-error.visible {
    display: block;
}
