/* تنظیمات کلی صفحه */
body {
    font-family: 'Tahoma', 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 100vh;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
}

/* استایل کادر لاگین */
.login-container {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-container h2 {
    margin-bottom: 20px;
    color: #333;
}

/* استایل فرم و ورودی‌ها */
.form-group {
    margin-bottom: 20px;
    text-align: right;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box; /* برای جلوگیری از بیرون زدگی پدینگ */
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: #764ba2;
    outline: none;
}

/* استایل دکمه */
.btn-login {
    width: 100%;
    padding: 12px;
    background-color: #764ba2;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-login:hover {
    background-color: #5a3a7a;
}

/* لینک‌های پایین فرم */
.links {
    margin-top: 15px;
    font-size: 14px;
}

.links a {
    color: #764ba2;
    text-decoration: none;
}

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

/* استایل‌های خطا برای فرم‌ها */
.input-error {
    border-color: red !important;
    background-color: #fff0f0;
}

.error-text {
    color: red;
    font-size: 0.85em;
    margin-top: 5px;
    display: block;
}

.general-error {
    color: red;
    text-align: center;
    margin-bottom: 15px;
    font-weight: bold;
}