/* auth.css - استایل‌های مخصوص صفحات ورود و ثبت‌نام */

:root {
    --primary: #FF9800;
    --primary-dark: #F57C00;
    --primary-light: #FFE0B2;
    --secondary: #FF5722;
    --secondary-dark: #D84315;
    --secondary-light: #FFCCBC;
    --dark: #333333;
    --dark-light: #555555;
    --gray: #666666;
    --gray-light: #888888;
    --light-gray: #F5F5F5;
    --lighter-gray: #FAFAFA;
    --white: #FFFFFF;
    --success: #4CAF50;
    --success-dark: #388E3C;
    --error: #f44336;
    --error-dark: #d32f2f;
    --warning: #ff9800;
    --info: #2196F3;
    --border-color: #EEEEEE;
    --border-dark: #DDDDDD;
    --shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 5px 25px rgba(0, 0, 0, 0.15);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--white);
    direction: rtl;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.03) 0%, rgba(33, 150, 243, 0.03) 100%);
    z-index: -1;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Auth Header */
.auth-header {
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--primary);
}

.auth-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
}

.auth-logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.auth-logo:hover {
    transform: translateY(-2px);
}

.auth-logo h1 {
    font-size: 1.6rem;
    color: var(--dark);
    font-weight: 700;
    line-height: 1.2;
}

.auth-logo span {
    color: var(--primary);
    font-weight: 800;
}

.back-to-home {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    padding: 10px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.back-to-home::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 152, 0, 0.1);
    border-radius: 50%;
    transform: translate(50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.back-to-home:hover::before {
    width: 300px;
    height: 300px;
}

.back-to-home:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateX(-5px);
}

.back-to-home i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.back-to-home:hover i {
    transform: translateX(3px);
}

/* Auth Main */
.auth-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
    min-height: calc(100vh - 130px);
}

.auth-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: stretch;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    border: 2px solid var(--border-color);
    max-width: 1100px;
    width: 100%;
    min-height: 650px;
}

/* Auth Image */
.auth-image {
    position: relative;
    height: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.auth-image::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: cover;
    z-index: 1;
}

.auth-overlay {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.3));
    color: var(--white);
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    z-index: 2;
}

.auth-overlay h2 {
    font-size: 2.2rem;
    margin-bottom: 25px;
    color: var(--white);
    font-weight: 700;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.auth-overlay p {
    margin-bottom: 30px;
    opacity: 0.9;
    font-size: 1.1rem;
    line-height: 1.6;
}

.auth-features {
    list-style: none;
    margin-bottom: 40px;
}

.auth-features li {
    margin-bottom: 18px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.5;
}

.auth-features li i {
    color: var(--primary);
    font-size: 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.signup-bonus {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius);
    padding: 25px;
    text-align: center;
    margin-top: 30px;
    position: relative;
    overflow: hidden;
}

.signup-bonus::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    z-index: 0;
}

.bonus-amount {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 5px;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.bonus-text {
    font-size: 1rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* Auth Form Container */
.auth-form-container {
    padding: 50px 40px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-form-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.auth-form-header h2 {
    font-size: 2rem;
    color: var(--dark);
    margin-bottom: 15px;
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.auth-form-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 3px;
}

.auth-form-header p {
    color: var(--gray);
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto;
}

/* Auth Form */
.auth-form {
    width: 100%;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark);
    font-size: 0.95rem;
}

.form-group label i {
    color: var(--primary);
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.form-group input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
    color: var(--dark);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 152, 0, 0.15);
}

.form-group input::placeholder {
    color: var(--gray-light);
    font-weight: 400;
}

.form-group input:focus::placeholder {
    opacity: 0.5;
}

/* Input with Country Code */
.input-with-country {
    display: flex;
    align-items: center;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    background: var(--white);
}

.input-with-country:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 152, 0, 0.15);
}

.country-code {
    padding: 0 20px;
    background: var(--light-gray);
    color: var(--dark);
    font-weight: 600;
    border-left: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    height: 100%;
    font-size: 1rem;
    min-width: 70px;
    justify-content: center;
}

.input-with-country input {
    border: none;
    padding: 15px;
    flex: 1;
    background: transparent;
}

.input-with-country input:focus {
    outline: none;
    box-shadow: none;
}

/* Password Input */
.password-input {
    position: relative;
}

.password-input input {
    padding-left: 60px;
    padding-right: 20px;
}

.toggle-password {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.toggle-password:hover {
    color: var(--primary);
    background: rgba(255, 152, 0, 0.1);
}

/* Password Strength */
.password-strength {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.strength-bar {
    flex: 1;
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.strength-fill {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 0;
    background: var(--error);
    transition: all 0.4s ease;
    border-radius: 3px;
}

.strength-bar.weak .strength-fill {
    width: 33%;
    background: var(--error);
}

.strength-bar.medium .strength-fill {
    width: 66%;
    background: var(--warning);
}

.strength-bar.strong .strength-fill {
    width: 100%;
    background: var(--success);
}

.strength-text {
    font-size: 0.85rem;
    color: var(--gray);
    min-width: 50px;
    font-weight: 500;
}

.strength-bar.weak ~ .strength-text {
    color: var(--error);
}

.strength-bar.medium ~ .strength-text {
    color: var(--warning);
}

.strength-bar.strong ~ .strength-text {
    color: var(--success);
}

/* Error Messages */
.error-message {
    color: var(--error);
    font-size: 0.85rem;
    margin-top: 8px;
    min-height: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

.error-message::before {
    content: '⚠';
    font-size: 0.8rem;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    color: var(--dark);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

.checkbox-label:hover {
    color: var(--primary);
}

.checkbox-label input {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    position: relative;
    transition: var(--transition);
    flex-shrink: 0;
    background: var(--white);
}

.checkbox-label:hover .checkmark {
    border-color: var(--primary);
}

.checkbox-label input:checked + .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox-label input:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid var(--white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.forgot-password {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
    font-weight: 600;
    padding: 5px 0;
    position: relative;
}

.forgot-password::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.forgot-password:hover {
    color: var(--secondary);
}

.forgot-password:hover::after {
    width: 100%;
}

/* Checkbox Group */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
}

.checkbox-group .checkmark {
    margin-top: 3px;
}

.checkbox-group label {
    font-weight: normal;
    align-items: flex-start;
    line-height: 1.6;
    cursor: pointer;
}

.terms-text {
    font-size: 0.9rem;
    color: var(--dark);
    line-height: 1.5;
}

.terms-text a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.terms-text a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: var(--transition);
}

.terms-text a:hover {
    color: var(--secondary);
}

.terms-text a:hover::after {
    width: 100%;
}

.hint-text {
    font-size: 0.85rem;
    color: var(--primary);
    margin-top: 8px;
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 5px;
}

.hint-text::before {
    content: '💡';
    font-size: 0.9rem;
}

/* Auth Submit Button */
.auth-submit {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: var(--transition);
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.auth-submit::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.auth-submit:hover::before {
    width: 400px;
    height: 400px;
}

.auth-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 87, 34, 0.4);
}

.auth-submit:active {
    transform: translateY(-1px);
}

.auth-submit i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.auth-submit:hover i {
    transform: translateX(5px);
}

/* Social Login */
.social-login {
    margin-bottom: 30px;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 25px 0;
    color: var(--gray);
    font-size: 0.9rem;
    font-weight: 500;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.divider span {
    padding: 0 15px;
    background: var(--white);
}

.social-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.social-btn {
    padding: 14px;
    border: 2px solid var(--border-color);
    background: var(--white);
    border-radius: var(--radius);
    cursor: pointer;
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 600;
    color: var(--dark);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.95rem;
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.social-btn.google:hover {
    border-color: #DB4437;
    color: #DB4437;
    background: rgba(219, 68, 55, 0.05);
}

.social-btn.telegram:hover {
    border-color: #0088cc;
    color: #0088cc;
    background: rgba(0, 136, 204, 0.05);
}

/* Auth Switch */
.auth-switch {
    text-align: center;
    padding: 25px;
    background: var(--light-gray);
    border-radius: var(--radius);
    margin-top: 30px;
    border: 2px solid var(--border-color);
}

.auth-switch p {
    color: var(--gray);
    margin-bottom: 15px;
    font-size: 1rem;
}

.switch-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
    display: inline-block;
    padding: 10px 25px;
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.switch-link::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 152, 0, 0.1);
    border-radius: 50%;
    transform: translate(50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.switch-link:hover::before {
    width: 300px;
    height: 300px;
}

.switch-link:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 152, 0, 0.3);
}

/* Guest Checkout */
.guest-checkout {
    text-align: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
}

.guest-checkout p {
    color: var(--gray);
    margin-bottom: 15px;
    font-size: 1rem;
}

.guest-checkout .btn {
    width: 100%;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
}

/* OTP Verification */
.otp-verification {
    background: var(--light-gray);
    padding: 30px;
    border-radius: var(--radius);
    margin-bottom: 25px;
    animation: slideDown 0.4s ease;
    border: 2px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.otp-verification::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.otp-header {
    text-align: center;
    margin-bottom: 25px;
}

.otp-header h3 {
    font-size: 1.3rem;
    color: var(--dark);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 700;
}

.otp-header h3 i {
    color: var(--primary);
    font-size: 1.2rem;
}

.otp-header p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.5;
}

#otp-phone {
    font-weight: 700;
    color: var(--primary);
    direction: ltr;
    display: inline-block;
    padding: 2px 8px;
    background: rgba(255, 152, 0, 0.1);
    border-radius: 4px;
}

.otp-inputs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.otp-input {
    width: 60px;
    height: 60px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    transition: var(--transition);
    background: var(--white);
    color: var(--dark);
}

.otp-input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 152, 0, 0.15);
    transform: translateY(-2px);
}

.otp-input.filled {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary-dark);
}

.otp-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

#resend-otp {
    padding: 10px 25px;
    font-size: 0.95rem;
    font-weight: 600;
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--dark);
}

#resend-otp:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(255, 152, 0, 0.05);
}

.countdown {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.countdown i {
    font-size: 1rem;
}

/* Auth Footer */
.auth-footer {
    background: var(--dark);
    color: var(--white);
    text-align: center;
    padding: 25px 0;
    font-size: 0.9rem;
    margin-top: auto;
    position: relative;
}

.auth-footer::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.auth-footer p {
    opacity: 0.8;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 1100px) {
    .auth-wrapper {
        max-width: 900px;
        min-height: 600px;
    }

    .auth-form-container {
        padding: 40px 30px;
    }

    .auth-overlay {
        padding: 40px 30px;
    }
}

@media (max-width: 992px) {
    .auth-wrapper {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
        min-height: auto;
    }

    .auth-image {
        display: none;
    }

    .auth-form-container {
        padding: 40px;
    }

    .auth-main {
        padding: 30px 0;
    }
}

@media (max-width: 768px) {
    .auth-main {
        padding: 20px 0;
    }

    .auth-wrapper {
        min-height: auto;
    }

    .auth-form-header h2 {
        font-size: 1.8rem;
    }

    .auth-form-header p {
        font-size: 1rem;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .forgot-password {
        align-self: flex-start;
    }

    .social-buttons {
        grid-template-columns: 1fr;
    }

    .otp-inputs {
        gap: 12px;
    }

    .otp-input {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }

    .auth-form-container {
        padding: 30px 25px;
    }

    .auth-overlay h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .auth-form-container {
        padding: 25px 20px;
    }

    .auth-form-header {
        margin-bottom: 30px;
    }

    .auth-form-header h2 {
        font-size: 1.6rem;
        padding-bottom: 12px;
    }

    .form-group input {
        padding: 14px 16px;
        font-size: 0.95rem;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .country-code {
        padding: 0 15px;
        font-size: 0.9rem;
        min-width: 60px;
    }

    .password-input input {
        padding-left: 55px;
    }

    .toggle-password {
        left: 16px;
    }

    .auth-submit {
        padding: 15px;
        font-size: 1rem;
    }

    .auth-submit i {
        font-size: 1.1rem;
    }

    .switch-link {
        padding: 9px 20px;
        font-size: 1rem;
    }

    .otp-inputs {
        gap: 10px;
    }

    .otp-input {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .otp-verification {
        padding: 25px 20px;
    }

    .social-btn {
        padding: 12px;
        font-size: 0.9rem;
    }

    .auth-footer {
        padding: 20px 0;
    }
}

@media (max-width: 480px) {
    .auth-nav {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .auth-logo h1 {
        font-size: 1.4rem;
    }

    .back-to-home {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .auth-form-header h2 {
        font-size: 1.4rem;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .otp-inputs {
        gap: 8px;
    }

    .otp-input {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .auth-switch {
        padding: 20px 15px;
    }

    .switch-link {
        width: 100%;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border: none;
    position: relative;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 87, 34, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 152, 0, 0.3);
}

/* Loading State */
.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 50%;
    transform: translate(50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(50%, -50%) rotate(360deg);
    }
}

/* Success/Error States */
.form-group.success input {
    border-color: var(--success);
}

.form-group.success input:focus {
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.15);
}

.form-group.error input {
    border-color: var(--error);
}

.form-group.error input:focus {
    box-shadow: 0 0 0 4px rgba(244, 67, 54, 0.15);
}