/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;700&display=swap');

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --btn-gradient: linear-gradient(135deg, #3498db, #2980b9);
    --error-color: orange;
    --success-color: #2ecc71;
    --text-color: #333;
    --bg-color: #f4f6f9;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    background: var(--primary-gradient);
    min-height: 100vh;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
    direction: rtl;
}

.login-container h2 {
    margin-bottom: 25px;
    color: var(--text-color);
    font-weight: 700;
}

/* فرم‌ها */
.form-group {
    margin-bottom: 20px;
    text-align: right;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.95em;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: #fafafa;
}

.form-group input:focus {
    border-color: #764ba2;
    background-color: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(118, 75, 162, 0.1);
}

/* لینک‌ها و دکمه‌های متنی */
.links {
    margin-top: 25px;
    font-size: 0.9em;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.links a, .links button {
    color: #764ba2;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: inherit;
    padding: 0;
    font-family: inherit;
}

.links a:hover, .links button:hover {
    text-decoration: underline;
}

/* پیام‌ها و خطاها */
.general-error {
    color: var(--error-color);
    background-color: #fdeaea;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    border: 1px solid #fadbd8;
}

.success-message {
    color: var(--success-color);
    background-color: #eafaf1;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    border: 1px solid #d4efdf;
}

.input-error {
    border-color: var(--error-color) !important;
    background-color: #fff0f0 !important;
}

.error-text {
    color: var(--error-color);
    font-size: 0.8em;
    margin-top: 5px;
    display: block;
}

/* باکس اطلاعات (برای step2) */
.info-box {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: right;
    font-size: 0.9em;
    color: #495057;
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.info-row:last-child {
    margin-bottom: 0;
}

#countdown {
    color: #e67e22;
    font-weight: bold;
    font-family: monospace;
    font-size: 1.1em;
    direction: ltr;
}