/* ============================================
AUTH PAGE - صفحه ورود و ثبت‌نام
طراحی ساده، تمیز و حرفه‌ای
============================================ */

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

body {
    background: #f5f5f7;
    font-family: 'Vazirmatn', 'Vazir', Tahoma, sans-serif;
    color: #2c2416;
    line-height: 1.6;
    min-height: 100vh;
}

/* کانتینر اصلی - وسط‌چین */
.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
}

/* هدر صفحه ورود */
.auth-header {
    text-align: center;
    margin-bottom: 28px;
    width: 100%;
    max-width: 440px;
}

.auth-header h2 {
    font-size: 24px;
    font-weight: 800;
    color: #1e3a5f;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.auth-header .subtitle {
    font-size: 14px;
    color: #5c4f3a;
}

/* باکس فرم - ساده و تمیز */
.auth-form {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px 28px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 2px 12px rgba(30, 58, 95, 0.06);
    border: 1px solid #e8dcc8;
}

.auth-step {
    animation: fadeIn 0.25s ease;
}

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

/* گروه فرم */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #2c2416;
    margin-bottom: 8px;
}

/* اینپوت - ساده */
.form-control {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    font-family: inherit;
    border: 1.5px solid #e8dcc8;
    border-radius: 10px;
    background: #faf8f5;
    color: #2c2416;
    transition: all 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: #1e3a5f;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.08);
}

.form-control::placeholder {
    color: #8b7a5e;
}

.form-help {
    font-size: 12px;
    color: #8b7a5e;
    margin-top: 6px;
}

/* دکمه اصلی - لاجوردی ساده */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-block {
    width: 100%;
}

.btn-lg {
    padding: 14px;
    font-size: 15px;
}

.btn-primary {
    background: #1e3a5f;
    color: #ffffff;
}

.btn-primary:hover:not(:disabled) {
    background: #152847;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.2);
}

.btn-primary:disabled {
    background: #c0c2c5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: #ffffff;
    color: #1e3a5f;
    border: 1.5px solid #1e3a5f;
}

.btn-secondary:hover {
    background: #f0f4f8;
}

/* پیام‌ها */
.alert {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 16px;
    border-right: 3px solid;
}

.alert-info {
    background: #e8f0f8;
    color: #1e3a5f;
    border-color: #1e3a5f;
}

.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border-color: #2e7d32;
}

.alert-error {
    background: #ffebee;
    color: #c62828;
    border-color: #c62828;
}

/* چک‌باکس */
input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #1e3a5f;
    cursor: pointer;
}

/* لینک‌ها */
a {
    color: #1e3a5f;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #d4a574;
}

/* ریسپانسیو */
@media (max-width: 480px) {
    .auth-page {
        padding: 24px 12px;
        justify-content: flex-start;
        padding-top: 60px;
    }
    
    .auth-form {
        padding: 24px 20px;
    }
    
    .auth-header h2 {
        font-size: 22px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}