/* ======= استایل‌های اصلی فرم ======= */
.auth-container {
    margin: 20px auto;
    padding: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    width: 99%;
    text-align: center;
}

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

.auth-header h1 {
    color: #2c3e50;
    margin-bottom: 12px;
    font-size: 28px;
    font-weight: 700;
}

.auth-header p {
    color: #7f8c8d;
    font-size: 16px;
    line-height: 1.6;
}

.auth-icon {
    font-size: 80px;
    color: #3498db;
    margin-bottom: 25px;
    text-align: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* ======= استایل‌های فرم و فیلدها ======= */
.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #2c3e50;
    font-size: 16px;
}

.form-control {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-family: Vazirmatn, sans-serif;
    font-size: 20px;
    text-align: center;
    letter-spacing: 8px;
    transition: all 0.3s ease;
    background: #f8f9fa;
    font-weight: 600;
}

.form-control:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.25);
    background: white;
    transform: translateY(-2px);
}

.form-control::placeholder {
    color: #adb5bd;
    letter-spacing: normal;
    font-weight: normal;
}

/* ======= استایل‌های دکمه‌ها ======= */
.btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-family: Vazirmatn, sans-serif;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.btn:hover {
    background: linear-gradient(135deg, #2980b9 0%, #2573a7 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.btn:active {
    transform: translateY(-1px);
}

/* ======= استایل‌های لینک‌ها ======= */
.auth-links {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid #eee;
}

.auth-links a {
    color: #3498db;
    text-decoration: none;
    margin: 0 12px;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.auth-links a:hover {
    text-decoration: underline;
    color: #2980b9;
}

/* ======= استایل‌های اعلان‌ها ======= */
.alert {
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 500;
}

.alert-error {
    background: linear-gradient(135deg, #ffecec 0%, #ffdbdb 100%);
    color: #e74c3c;
    border: 2px solid #f5c6cb;
}

.alert-success {
    background: linear-gradient(135deg, #e8f5e9 0%, #d4edda 100%);
    color: #2ecc71;
    border: 2px solid #c3e6cb;
}

/* ======= استایل‌های ارسال مجدد کد ======= */
.resend-code {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid #eee;
    text-align: center;
    font-size: 15px;
    color: #6c757d;
}

.resend-code p {
    margin: 12px 0;
    line-height: 1.6;
}

.resend-code a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 8px;
    display: inline-block;
    background: rgba(52, 152, 219, 0.1);
}

.resend-code a:hover {
    color: #2980b9;
    background: rgba(52, 152, 219, 0.2);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
}

.resend-code a:active {
    transform: translateY(0);
}

/* ======= استایل‌های اطلاعات کاربر ======= */
.user-info {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    text-align: center;
    border: 2px solid #e9ecef;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.user-info p {
    margin: 8px 0;
    color: #6c757d;
    font-size: 15px;
    font-weight: 500;
}

.user-info strong {
    color: #2c3e50;
    font-weight: 600;
}

/* ======= استایل‌های راهنمای تلگرام ======= */
.telegram-help {
    background: #e3f2fd;
    border: 2px solid #bbdefb;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
}

.telegram-help h4 {
    margin-top: 0;
    color: #1976d2;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    margin-bottom: 15px;
}

.telegram-help ol {
    padding-right: 25px;
    margin-bottom: 0;
    font-size: 16px;
}

.telegram-help li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.required-field::after {
    content: " *";
    color: #e74c3c;
}

/* ======= استایل‌های فوتر ======= */
footer {
    background: linear-gradient(135deg, #1a5fc4 0%, #5d4dc0 100%);
    color: white;
    padding: 3rem 5%;
    margin-top: 4rem;
    box-shadow: 0 -4px 20px rgba(26, 95, 196, 0.25);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #ffd93d;
    display: inline-block;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    display: block;
    padding: 0.5rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
}

.footer-links a:hover {
    color: #ffd93d;
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(255, 217, 61, 0.2);
}

.social-links {
    display: flex;
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(26, 95, 196, 0.25);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    background: rgba(255, 217, 61, 0.8);
    color: #1a5fc4;
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 6px 20px rgba(255, 217, 61, 0.3);
    border-color: rgba(255, 217, 61, 0.5);
}

.copyright {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    font-weight: 500;
}

/* ======= رسپانسیو برای دسکتاپ متوسط ======= */
@media (max-width: 1200px) {
    .auth-container {
        width: 95%;
        max-width: 500px;
    }
}

/* ======= رسپانسیو برای تبلت ======= */
@media (max-width: 1024px) {
    .auth-container {
        width: 90%;
        margin: 60px auto;
        padding: 35px;
    }
    
    .auth-header h1 {
        font-size: 26px;
    }
    
    .auth-icon {
        font-size: 70px;
    }
    
    .form-control {
        padding: 14px 18px;
        font-size: 18px;
        letter-spacing: 6px;
    }
    
    .btn {
        padding: 14px;
        font-size: 16px;
    }
}

/* ======= رسپانسیو برای تبلت کوچک ======= */
@media (max-width: 768px) {
    .auth-container {
        width: 85%;
        max-width: 450px;
        margin: 40px auto;
        padding: 30px;
    }
    
    .auth-header h1 {
        font-size: 24px;
    }
    
    .auth-header p {
        font-size: 15px;
    }
    
    .auth-icon {
        font-size: 60px;
        margin-bottom: 20px;
    }
    
    .form-control {
        padding: 13px 16px;
        font-size: 16px;
        letter-spacing: 5px;
        border-radius: 8px;
    }
    
    .btn {
        padding: 14px;
        font-size: 16px;
        border-radius: 8px;
    }
    
    .alert {
        padding: 14px 18px;
        font-size: 14px;
        border-radius: 8px;
    }
    
    .resend-code {
        margin-top: 25px;
        padding-top: 20px;
        font-size: 14px;
    }
    
    .resend-code a {
        padding: 6px 12px;
    }
    
    .user-info {
        padding: 15px;
        border-radius: 10px;
    }
    
    .user-info p {
        font-size: 14px;
    }
    
    /* رسپانسیو فوتر برای تبلت */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
        gap: 1rem;
    }
}

/* ======= رسپانسیو برای موبایل ======= */
@media (max-width: 480px) {
    .auth-container {
        width: 90%;
        max-width: 400px;
        margin: 20px auto;
        padding: 25px;
        border-radius: 10px;
    }
    
    .auth-header h1 {
        font-size: 22px;
    }
    
    .auth-header p {
        font-size: 14px;
    }
    
    .auth-icon {
        font-size: 50px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group label {
        font-size: 15px;
    }
    
    .form-control {
        padding: 12px 14px;
        font-size: 15px;
        letter-spacing: 4px;
    }
    
    .btn {
        padding: 12px;
        font-size: 16px;
    }
    
    .auth-links {
        font-size: 15px;
    }
    
    .auth-links a {
        margin: 0 8px;
    }
    
    .telegram-help {
        padding: 15px;
    }
    
    .telegram-help h4 {
        font-size: 16px;
    }
    
    .telegram-help ol {
        font-size: 15px;
    }
    
    .alert {
        padding: 12px 15px;
        font-size: 13px;
    }
    
    .resend-code {
        font-size: 13px;
    }
    
    .resend-code a {
        padding: 5px 10px;
    }
    
    /* رسپانسیو فوتر برای موبایل */
    footer {
        padding: 2.5rem 5%;
        background: linear-gradient(135deg, #1a5fc4 0%, #5546b8 100%);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
    
    .footer-section {
        padding: 1.2rem 0;
    }
    
    .footer-section h3 {
        font-size: 1.3rem;
        margin-bottom: 1.2rem;
    }
    
    .footer-links {
        padding: 0;
    }
    
    .footer-links li {
        margin-bottom: 1rem;
    }
    
    .footer-links a {
        padding: 0.8rem;
        background: rgba(255, 255, 255, 0.08);
    }
    
    .footer-links a:hover {
        background: rgba(255, 255, 255, 0.15);
    }
    
    .social-links {
        justify-content: center;
        gap: 1rem;
    }
    
    .social-links a {
        width: 52px;
        height: 52px;
        background: rgba(255, 255, 255, 0.1);
    }
    
    .copyright {
        margin-top: 2.5rem;
        padding-top: 2rem;
        font-size: 0.95rem;
        border-top: 2px solid rgba(255, 255, 255, 0.15);
    }
}

/* ======= رسپانسیو برای موبایل‌های بسیار کوچک ======= */
@media (max-width: 360px) {
    .auth-container {
        width: 95%;
        max-width: 340px;
        margin: 15px auto;
        padding: 20px;
    }
    
    .auth-header h1 {
        font-size: 20px;
    }
    
    .auth-header p {
        font-size: 13px;
    }
    
    .form-control {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .btn {
        padding: 10px;
        font-size: 15px;
    }
}