/* ===== Auth Page — Premium Finance Look ===== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-dark);
    position: relative;
    overflow: hidden;
    padding: 20px;
}

/* Subtle grid pattern */
.auth-page::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

/* Decorative gradient orb */
.auth-page::after {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(26, 86, 219, 0.15) 0%, transparent 70%);
    top: -150px;
    right: -100px;
    pointer-events: none;
}

.auth-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.06);
    padding: 44px 40px 36px;
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
    border: 1px solid var(--border-light);
}

.auth-card .brand-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    box-shadow: 0 4px 12px rgba(26, 86, 219, 0.3);
}
.auth-card .brand-icon svg {
    width: 24px;
    height: 24px;
    color: #fff;
}

.auth-card h1 {
    font-size: 1.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 4px;
    color: var(--text);
    letter-spacing: -0.03em;
}

.auth-card .subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8125rem;
    margin-bottom: 30px;
}

.auth-card .form-group {
    margin-bottom: 16px;
}

.auth-card .form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.8125rem;
    margin-bottom: 5px;
    color: var(--text-secondary);
}

.auth-card .btn {
    width: 100%;
    justify-content: center;
    padding: 11px;
    font-size: 0.875rem;
    margin-top: 8px;
    font-weight: 700;
}

.auth-card .auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.auth-error {
    background: var(--danger-light);
    color: var(--danger);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    margin-bottom: 16px;
    border: 1px solid rgba(220, 38, 38, 0.15);
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: var(--text-muted);
    font-size: 0.75rem;
}
.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* Phone input group */
.phone-input-group {
    display: flex;
    gap: 8px;
}

/* Password toggle eye icon */
.password-wrapper {
    position: relative;
}

.password-wrapper .input {
    padding-right: 42px;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: color var(--transition);
    border-radius: var(--radius-sm);
}

.password-toggle:hover {
    color: var(--text-secondary);
}

.password-toggle svg.hidden {
    display: none;
}

.phone-code-select {
    width: 120px;
    flex-shrink: 0;
    padding-right: 8px;
    cursor: pointer;
    appearance: auto;
    -webkit-appearance: auto;
    font-size: 0.85rem;
}

.phone-number-input {
    flex: 1;
    min-width: 0;
}

/* Responsive */
@media (max-width: 480px) {
    .auth-card {
        padding: 32px 24px 28px;
    }

    .phone-code-select {
        width: 100px;
    }
}
