:root {
    --primary: #00f2fe;
    --secondary: #4facfe;
    --dark: #020617;
    --card: #0f172a;
    --border: rgba(255, 255, 255, 0.1);
    --glass: rgba(255, 255, 255, 0.05);
}

body {
    background-color: var(--dark);
    background: radial-gradient(circle at top right, #0c1e35, #020617);
    color: #fff;
    font-family: 'Vazirmatn', sans-serif;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.auth-container {
    width: 100%;
    max-width: 450px;
    perspective: 1000px;
    padding: 20px;
}

.auth-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 40px;
    padding: 40px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    position: relative;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Input Styling --- */
.form-label { font-size: 0.85rem; color: #94a3b8; margin-right: 15px; }
.form-control {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 15px 20px;
    color: #fff;
    transition: 0.3s;
}
.form-control:focus {
    background: rgba(255,255,255,0.07);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
    color: #fff;
}

/* --- Buttons --- */
.btn-auth {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    border: none; border-radius: 20px; padding: 15px;
    font-weight: 800; color: #020617; width: 100%;
    transition: 0.4s; margin-top: 10px;
}
.btn-auth:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0, 242, 254, 0.3); }

.btn-google {
    background: white; color: #000; border: none; border-radius: 20px;
    padding: 12px; width: 100%; display: flex; align-items: center;
    justify-content: center; gap: 10px; font-weight: 500; transition: 0.3s;
}
.btn-google:hover { background: #f1f1f1; transform: translateY(-2px); }

/* --- Toggle Switch --- */
.auth-toggle {
    background: var(--glass); border-radius: 50px;
    padding: 5px; display: flex; margin-bottom: 30px;
}
.auth-toggle button {
    flex: 1; border: none; background: transparent; color: #94a3b8;
    padding: 10px; border-radius: 50px; transition: 0.3s; font-weight: 500;
}
.auth-toggle button.active {
    background: var(--secondary); color: #020617; font-weight: 800;
}

/* --- Sections Visibility --- */
.auth-section { display: none; animation: fadeIn 0.5s forwards; }
.auth-section.active { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- OTP Inputs --- */
.otp-wrapper { display: flex; gap: 10px; justify-content: center; direction: ltr; }
.otp-input {
    width: 50px; height: 60px; text-align: center; font-size: 1.5rem;
    font-weight: 800; border-radius: 15px; background: var(--glass);
    border: 1px solid var(--border); color: var(--primary);
}

.back-link { color: var(--text-muted); text-decoration: none; font-size: 0.8rem; cursor: pointer; transition: 0.3s; }
.back-link:hover { color: var(--primary); }
