/* Auth Clean - Modern Authentication Styles */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&display=swap');

:root {
    --auth-primary: #4f4539;
    --auth-primary-dark: #3d352c;
    --auth-primary-light: #6b5d4d;
    --auth-secondary: #8b7355;
    --auth-bg-gradient: linear-gradient(150deg, #2c241e 0%, #3d332a 35%, #4a3e34 60%, #2c241e 100%);
    --auth-text-primary: #1F2937;
    --auth-text-secondary: #6B7280;
    --auth-text-muted: #9CA3AF;
    --auth-border: #E5E7EB;
    --auth-error: #EF4444;
    --auth-success: #10B981;
    --auth-white: #FFFFFF;
    --auth-shadow: 0 10px 40px rgba(79, 69, 57, 0.15);
    --auth-shadow-sm: 0 2px 8px rgba(79, 69, 57, 0.1);
}

/* ===========================
   DARK THEME
   =========================== */
[data-theme="dark"] {
    --auth-primary: #d4b88a;
    --auth-primary-dark: #c4a87a;
    --auth-primary-light: #e0c89a;
    --auth-secondary: #c4a87a;
    --auth-bg-gradient: linear-gradient(135deg, #0f0e0d 0%, #1a1816 50%, #0f0e0d 100%);
    --auth-text-primary: #f5f2ed;
    --auth-text-secondary: #a09a93;
    --auth-text-muted: #6b665f;
    --auth-border: #3a3632;
    --auth-error: #f87171;
    --auth-success: #34d399;
    --auth-white: #1a1816;
    --auth-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    --auth-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] body.auth-body {
    background: var(--auth-bg-gradient);
}

[data-theme="dark"] body.auth-body::before {
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

[data-theme="dark"] .auth-container {
    background: #1a1816;
    border: 1px solid #2a2725;
}

[data-theme="dark"] .auth-form-panel {
    background: #1a1816;
    scrollbar-color: rgba(255,255,255,0.08) transparent;
}

[data-theme="dark"] .auth-form-panel::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.08);
}
[data-theme="dark"] .auth-form-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.15);
}

[data-theme="dark"] .auth-illustration-panel {
    background: linear-gradient(150deg, #0f0e0d 0%, #1a1612 30%, #252018 55%, #0f0e0d 100%);
    border-left: 1px solid rgba(212, 184, 138, 0.08);
}

[data-theme="dark"] .auth-illustration-panel::before {
    background-image:
        linear-gradient(rgba(212, 184, 138, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 184, 138, 0.03) 1px, transparent 1px);
}

[data-theme="dark"] .auth-illustration-panel::after {
    background: radial-gradient(circle, rgba(212, 184, 138, 0.08) 0%, transparent 65%);
}

[data-theme="dark"] .auth-glow-orb {
    background: radial-gradient(circle, rgba(212, 184, 138, 0.05) 0%, transparent 65%);
}

[data-theme="dark"] .auth-illustration-icon {
    background: linear-gradient(135deg, rgba(212, 184, 138, 0.15) 0%, rgba(212, 184, 138, 0.05) 100%);
    border-color: rgba(212, 184, 138, 0.18);
}

[data-theme="dark"] .auth-illustration-icon svg {
    fill: #d4b88a;
}

[data-theme="dark"] .auth-illustration-icon i {
    color: #d4b88a;
}

[data-theme="dark"] .auth-illustration-title {
    color: #f5f2ed;
}

[data-theme="dark"] .auth-illustration-text {
    color: rgba(245, 242, 237, 0.6);
}

[data-theme="dark"] .auth-illust-badge {
    background: rgba(212, 184, 138, 0.08);
    border-color: rgba(212, 184, 138, 0.12);
    color: #d4b88a;
}

[data-theme="dark"] .auth-illust-highlight {
    color: #d4b88a;
}

[data-theme="dark"] .auth-illust-stat-num {
    color: #d4b88a;
}

[data-theme="dark"] .auth-illust-stat-label {
    color: rgba(245, 242, 237, 0.4);
}

[data-theme="dark"] .auth-feature-item {
    background: rgba(212, 184, 138, 0.05);
    border-color: rgba(212, 184, 138, 0.08);
}

[data-theme="dark"] .auth-feature-item:hover {
    background: rgba(212, 184, 138, 0.1);
    border-color: rgba(212, 184, 138, 0.18);
}

[data-theme="dark"] .auth-feature-icon {
    background: rgba(212, 184, 138, 0.1);
    color: #d4b88a;
}

[data-theme="dark"] .auth-feature-text {
    color: rgba(245, 242, 237, 0.75);
}

[data-theme="dark"] .auth-feature-text strong {
    color: #f5f2ed;
}

[data-theme="dark"] .auth-illust-trust {
    color: rgba(245, 242, 237, 0.3);
}

[data-theme="dark"] .auth-illust-trust i {
    color: rgba(212, 184, 138, 0.4);
}

[data-theme="dark"] .auth-feature-icon {
    color: #d4b88a;
}

[data-theme="dark"] .auth-feature-text {
    color: rgba(245, 242, 237, 0.85);
}

[data-theme="dark"] .auth-logo svg rect {
    fill: #d4b88a;
}

[data-theme="dark"] .auth-logo svg path {
    fill: #1a1816;
}

[data-theme="dark"] .auth-logo svg circle {
    fill: #d4b88a;
}

[data-theme="dark"] .auth-input {
    background: #0f0e0d;
    border-color: #3a3632;
    color: #f5f2ed;
}

[data-theme="dark"] .auth-input:focus {
    border-color: #d4b88a;
    box-shadow: 0 0 0 4px rgba(212, 184, 138, 0.15);
}

[data-theme="dark"] .auth-input::placeholder {
    color: #6b665f;
}

[data-theme="dark"] .auth-country-select {
    background: #0f0e0d;
    border-color: #3a3632;
    color: #f5f2ed;
}

[data-theme="dark"] .auth-country-select:focus {
    border-color: #d4b88a;
}

[data-theme="dark"] .auth-btn-primary {
    background: #d4b88a;
    color: #1a1816;
}

[data-theme="dark"] .auth-btn-primary:hover {
    background: #c4a87a;
    box-shadow: 0 8px 20px rgba(212, 184, 138, 0.25);
}

[data-theme="dark"] .auth-btn-outline {
    border-color: #3a3632;
    color: #f5f2ed;
}

[data-theme="dark"] .auth-btn-outline:hover {
    border-color: #d4b88a;
    background: rgba(212, 184, 138, 0.05);
    color: #d4b88a;
}

[data-theme="dark"] .auth-btn-phone {
    background: #c4a87a;
    color: #1a1816;
}

[data-theme="dark"] .auth-btn-phone:hover {
    background: #b49a6e;
    box-shadow: 0 8px 20px rgba(212, 184, 138, 0.25);
}

[data-theme="dark"] .auth-divider-line {
    background: #3a3632;
}

[data-theme="dark"] .auth-divider-text {
    color: #6b665f;
}

[data-theme="dark"] .auth-link {
    color: #d4b88a;
}

[data-theme="dark"] .auth-link:hover {
    color: #e0c89a;
}

[data-theme="dark"] .auth-footer {
    color: #a09a93;
}

[data-theme="dark"] .auth-alert-error {
    background: rgba(248, 113, 113, 0.1);
    color: #f87171;
    border-color: rgba(248, 113, 113, 0.2);
}

[data-theme="dark"] .auth-alert-success {
    background: rgba(52, 211, 153, 0.1);
    color: #34d399;
    border-color: rgba(52, 211, 153, 0.2);
}

[data-theme="dark"] .auth-alert-info {
    background: rgba(96, 165, 250, 0.1);
    color: #60a5fa;
    border-color: rgba(96, 165, 250, 0.2);
}

[data-theme="dark"] .auth-otp-input {
    background: #0f0e0d;
    border-color: #3a3632;
    color: #f5f2ed;
}

[data-theme="dark"] .auth-otp-input:focus {
    border-color: #d4b88a;
    box-shadow: 0 0 0 4px rgba(212, 184, 138, 0.15);
}

[data-theme="dark"] .auth-tabs {
    background: #0f0e0d;
}

[data-theme="dark"] .auth-tab {
    color: #a09a93;
}

[data-theme="dark"] .auth-tab:hover {
    color: #f5f2ed;
}

[data-theme="dark"] .auth-tab.active {
    background: #252220;
    color: #d4b88a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .auth-strength-bar {
    background: #3a3632;
}

[data-theme="dark"] .auth-checkbox-label {
    color: #a09a93;
}

[data-theme="dark"] .auth-resend-text {
    color: #a09a93;
}

[data-theme="dark"] .auth-resend-btn {
    color: #d4b88a;
}

[data-theme="dark"] .auth-resend-btn:disabled {
    color: #6b665f;
}

[data-theme="dark"] .auth-input-icon {
    color: #6b665f;
}

[data-theme="dark"] .auth-input-icon:hover {
    color: #a09a93;
}

[data-theme="dark"] .auth-modal-overlay {
    background: rgba(0, 0, 0, 0.7);
}

[data-theme="dark"] .auth-modal {
    background: #1a1816;
    border: 1px solid #2a2725;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.auth-body {
    font-family: 'DM Sans', sans-serif;
    background: var(--auth-bg-gradient);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

body.auth-body::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

/* Main Container */
.auth-container {
    width: 100%;
    max-width: 1100px;
    height: calc(100vh - 40px);
    max-height: 750px;
    min-height: 600px;
    display: flex;
    background: var(--auth-white);
    border-radius: 24px;
    box-shadow: var(--auth-shadow);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* Left Panel - Form Section */
.auth-form-panel {
    flex: 1;
    padding: 50px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 500px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.1) transparent;
}

.auth-form-panel::-webkit-scrollbar {
    width: 4px;
}
.auth-form-panel::-webkit-scrollbar-track {
    background: transparent;
}
.auth-form-panel::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.1);
    border-radius: 4px;
}
.auth-form-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,0.2);
}

/* Right Panel - Illustration Section */
.auth-illustration-panel {
    flex: 1;
    background: linear-gradient(150deg, #1a1612 0%, #2c241e 30%, #3d332a 55%, #1a1612 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 40px;
    position: relative;
    overflow: hidden;
}

/* Subtle grid pattern */
.auth-illustration-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(212, 184, 138, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 184, 138, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

/* Ambient gold glow orbs */
.auth-illustration-panel::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212, 184, 138, 0.1) 0%, transparent 65%);
    border-radius: 50%;
    top: -80px;
    right: -100px;
    animation: authGlowFloat 18s ease-in-out infinite;
    z-index: 0;
}

/* Floating Decorative Elements */
.auth-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

.auth-particle {
    position: absolute;
    border-radius: 50%;
    animation: particleFloat 20s infinite ease-in-out;
}

.auth-particle:nth-child(1) {
    width: 6px;
    height: 6px;
    background: rgba(212, 184, 138, 0.5);
    top: 12%;
    left: 15%;
    animation-delay: 0s;
    animation-duration: 22s;
}

.auth-particle:nth-child(2) {
    width: 4px;
    height: 4px;
    background: rgba(212, 184, 138, 0.4);
    top: 28%;
    right: 20%;
    animation-delay: 2s;
    animation-duration: 18s;
}

.auth-particle:nth-child(3) {
    width: 8px;
    height: 8px;
    background: rgba(212, 184, 138, 0.3);
    bottom: 25%;
    left: 12%;
    animation-delay: 4s;
    animation-duration: 25s;
}

.auth-particle:nth-child(4) {
    width: 5px;
    height: 5px;
    background: rgba(212, 184, 138, 0.45);
    top: 55%;
    right: 12%;
    animation-delay: 1s;
    animation-duration: 20s;
}

.auth-particle:nth-child(5) {
    width: 3px;
    height: 3px;
    background: rgba(212, 184, 138, 0.5);
    bottom: 15%;
    right: 25%;
    animation-delay: 3s;
    animation-duration: 16s;
}

/* Additional glow orb at bottom-left */
.auth-glow-orb {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(212, 184, 138, 0.07) 0%, transparent 65%);
    border-radius: 50%;
    bottom: -100px;
    left: -80px;
    animation: authGlowFloat 22s ease-in-out infinite reverse;
    z-index: 0;
    pointer-events: none;
}

@keyframes authGlowFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(25px, -20px) scale(1.08);
    }
    66% {
        transform: translate(-15px, 15px) scale(0.95);
    }
}

@keyframes particleFloat {
    0%, 100% {
        transform: translate(0, 0);
        opacity: 0.4;
    }
    25% {
        transform: translate(20px, -30px);
        opacity: 0.8;
    }
    50% {
        transform: translate(-15px, -50px);
        opacity: 0.5;
    }
    75% {
        transform: translate(25px, -20px);
        opacity: 0.9;
    }
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* Illustration Content */
.auth-illustration-content {
    text-align: center;
    color: #fff;
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 400px;
}

/* Brand badge at top */
.auth-illust-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(212, 184, 138, 0.1);
    border: 1px solid rgba(212, 184, 138, 0.15);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: #d4b88a;
    letter-spacing: 0.5px;
    margin-bottom: 28px;
    backdrop-filter: blur(8px);
}
.auth-illust-badge i {
    font-size: 14px;
}

/* Icon */
.auth-illustration-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(212, 184, 138, 0.2) 0%, rgba(212, 184, 138, 0.08) 100%);
    border: 1px solid rgba(212, 184, 138, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    backdrop-filter: blur(10px);
    animation: iconPulse 4s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.auth-illustration-icon:hover {
    transform: scale(1.05) rotate(3deg);
}

.auth-illustration-icon svg {
    width: 36px;
    height: 36px;
    fill: #d4b88a;
}

.auth-illustration-icon i {
    font-size: 32px;
    color: #d4b88a;
}

@keyframes iconPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(212, 184, 138, 0.25);
    }
    50% {
        box-shadow: 0 0 0 16px rgba(212, 184, 138, 0);
    }
}

/* Title */
.auth-illustration-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
    color: #fff;
    min-height: auto;
    display: block;
}

.auth-illustration-title-text {
    display: inline-block;
    animation: fadeInUp 0.6s ease-out;
    transition: opacity 0.3s ease;
}

.auth-illust-highlight {
    color: #d4b88a;
}

/* Subtitle */
.auth-illustration-text {
    font-size: 14px;
    opacity: 0.7;
    line-height: 1.7;
    max-width: 320px;
    margin: 0 auto 28px;
    min-height: auto;
    color: rgba(255, 255, 255, 0.7);
}

.auth-illustration-text-dynamic {
    display: inline-block;
    animation: fadeInUp 0.6s ease-out;
    transition: opacity 0.3s ease;
}

/* Stats Row */
.auth-illust-stats {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-bottom: 28px;
}
.auth-illust-stat {
    text-align: center;
}
.auth-illust-stat-num {
    font-size: 22px;
    font-weight: 700;
    color: #d4b88a;
    line-height: 1.2;
}
.auth-illust-stat-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* Feature Highlights */
.auth-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 0;
    width: 100%;
}

.auth-feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: rgba(212, 184, 138, 0.06);
    border: 1px solid rgba(212, 184, 138, 0.08);
    border-radius: 14px;
    backdrop-filter: blur(8px);
    animation: slideInRight 0.6s ease-out;
    animation-fill-mode: both;
    transition: all 0.3s ease;
}

.auth-feature-item:hover {
    transform: translateX(4px);
    background: rgba(212, 184, 138, 0.12);
    border-color: rgba(212, 184, 138, 0.22);
}

.auth-feature-item:nth-child(1) {
    animation-delay: 0.1s;
}

.auth-feature-item:nth-child(2) {
    animation-delay: 0.2s;
}

.auth-feature-item:nth-child(3) {
    animation-delay: 0.3s;
}

.auth-feature-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(212, 184, 138, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    color: #d4b88a;
}

.auth-feature-text {
    font-size: 13px;
    opacity: 0.9;
    flex: 1;
    text-align: left;
    color: rgba(255, 255, 255, 0.85);
}

.auth-feature-text strong {
    color: #fff;
    font-weight: 600;
    display: block;
    margin-bottom: 2px;
    font-size: 14px;
}

/* Trust indicators at bottom */
.auth-illust-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
}
.auth-illust-trust i {
    color: rgba(212, 184, 138, 0.5);
    font-size: 13px;
}

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Logo & Header */
.auth-logo {
    margin-bottom: 10px;
}

.auth-logo svg {
    width: 48px;
    height: 48px;
}

.auth-header {
    margin-bottom: 35px;
}

.auth-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--auth-text-primary);
    margin-bottom: 10px;
}

.auth-subtitle {
    font-size: 15px;
    color: var(--auth-text-secondary);
    line-height: 1.5;
}

/* Form Styles */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.auth-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--auth-text-primary);
}

.auth-input-wrapper {
    position: relative;
}

.auth-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--auth-border);
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    color: var(--auth-text-primary);
    background: var(--auth-white);
    transition: all 0.3s ease;
    outline: none;
}

.auth-input:focus {
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 4px rgba(79, 69, 57, 0.15);
}

.auth-input::placeholder {
    color: var(--auth-text-muted);
}

.auth-input-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--auth-text-muted);
    cursor: pointer;
    transition: color 0.2s;
}

.auth-input-icon:hover {
    color: var(--auth-text-secondary);
}

/* Phone Input with Country Code */
.auth-phone-wrapper {
    display: flex;
    gap: 10px;
}

.auth-country-select {
    width: 100px;
    padding: 14px 12px;
    border: 2px solid var(--auth-border);
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    color: var(--auth-text-primary);
    background: var(--auth-white);
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
}

.auth-country-select:focus {
    border-color: var(--auth-primary);
}

.auth-phone-input {
    flex: 1;
}

/* Button Styles */
.auth-btn {
    padding: 16px 24px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.auth-btn-primary {
    background: var(--auth-primary);
    color: var(--auth-white);
}

.auth-btn-primary:hover {
    background: var(--auth-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 69, 57, 0.35);
}

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

.auth-btn-outline {
    background: transparent;
    color: var(--auth-text-primary);
    border: 2px solid var(--auth-border);
    width: 100%;
}

.auth-btn-outline:hover {
    border-color: var(--auth-text-secondary);
    background: rgba(0, 0, 0, 0.02);
}

.auth-btn-phone {
    background: var(--auth-secondary);
    color: var(--auth-white);
}

.auth-btn-phone:hover {
    background: #7a6548;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 115, 85, 0.35);
}

.auth-btn-disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.auth-btn-loading {
    position: relative;
    pointer-events: none;
    cursor: not-allowed;
}

.auth-btn-loading i {
    display: none;
}

.auth-btn-loading::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 5px 0;
}

.auth-divider-line {
    flex: 1;
    height: 1px;
    background: var(--auth-border);
}

.auth-divider-text {
    font-size: 13px;
    color: var(--auth-text-muted);
    font-weight: 500;
}

/* Links */
.auth-link {
    color: var(--auth-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.auth-link:hover {
    color: var(--auth-primary-dark);
    text-decoration: underline;
}

.auth-forgot-link {
    font-size: 14px;
    text-align: right;
    margin-top: -10px;
}

/* Footer */
.auth-footer {
    margin-top: 30px;
    text-align: center;
    font-size: 14px;
    color: var(--auth-text-secondary);
}

/* Alert Messages */
.auth-alert {
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.auth-alert-error {
    background: #FEF2F2;
    color: var(--auth-error);
    border: 1px solid #FECACA;
}

.auth-alert-success {
    background: #ECFDF5;
    color: var(--auth-success);
    border: 1px solid #A7F3D0;
}

.auth-alert-info {
    background: #EFF6FF;
    color: #3B82F6;
    border: 1px solid #BFDBFE;
}

.auth-alert-icon {
    flex-shrink: 0;
}

/* OTP Input */
.auth-otp-container {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 30px 0;
}

.auth-otp-input {
    width: 60px;
    height: 65px;
    border: 2px solid var(--auth-border);
    border-radius: 12px;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    color: var(--auth-text-primary);
    background: var(--auth-white);
    transition: all 0.3s ease;
    outline: none;
}

.auth-otp-input:focus {
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 4px rgba(79, 69, 57, 0.15);
}

.auth-otp-input::-webkit-inner-spin-button,
.auth-otp-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Tab Switcher */
.auth-tabs {
    display: flex;
    background: #F3F4F6;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 30px;
}

.auth-tab {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    color: var(--auth-text-secondary);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-tab:hover {
    color: var(--auth-text-primary);
}

.auth-tab.active {
    background: var(--auth-white);
    color: var(--auth-primary);
    box-shadow: var(--auth-shadow-sm);
}

/* Phone Auth Section */
.auth-phone-section {
    display: none;
}

.auth-phone-section.active {
    display: block;
}

.auth-email-section {
    display: none;
}

.auth-email-section.active {
    display: block;
}

/* Resend OTP */
.auth-resend {
    text-align: center;
    margin-top: 20px;
}

.auth-resend-text {
    font-size: 14px;
    color: var(--auth-text-secondary);
}

.auth-resend-btn {
    background: none;
    border: none;
    color: var(--auth-primary);
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
}

.auth-resend-btn:hover {
    text-decoration: underline;
}

.auth-resend-btn:disabled {
    color: var(--auth-text-muted);
    cursor: not-allowed;
}

/* Firebase reCAPTCHA Container */
#recaptcha-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

/* Password Strength */
.auth-password-strength {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

.auth-strength-bar {
    flex: 1;
    height: 4px;
    background: var(--auth-border);
    border-radius: 2px;
    transition: background 0.3s;
}

.auth-strength-bar.weak {
    background: #EF4444;
}

.auth-strength-bar.medium {
    background: #F59E0B;
}

.auth-strength-bar.strong {
    background: #10B981;
}

/* Checkbox */
.auth-checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--auth-primary);
}

.auth-checkbox-label {
    font-size: 14px;
    color: var(--auth-text-secondary);
}

/* Responsive Design */
@media (max-width: 900px) {
    .auth-container {
        flex-direction: column;
        max-width: 480px;
        height: auto;
        max-height: none;
        min-height: auto;
    }

    .auth-illustration-panel {
        display: none;
    }

    .auth-form-panel {
        max-width: 100%;
        padding: 40px 30px;
        overflow-y: visible;
    }
}

@media (max-width: 480px) {
    body.auth-body {
        padding: 10px;
    }

    .auth-container {
        border-radius: 16px;
    }

    .auth-form-panel {
        padding: 30px 20px;
    }

    .auth-title {
        font-size: 26px;
    }

    .auth-otp-container {
        gap: 8px;
    }

    .auth-otp-input {
        width: 50px;
        height: 55px;
        font-size: 24px;
    }
}

/* Animation Classes */
.auth-fade-in {
    animation: fadeIn 0.4s ease-out;
}

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

.auth-slide-up {
    animation: slideUp 0.5s ease-out;
}

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

