form {
    direction: rtl;
}

/* فرم */
form {
    max-width: 500px;
    margin: 40px auto;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* تیتر */
form h1,
form h2,
form h3 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #3498db;
}

/* لیبل */
label {
    display: block;
    margin-bottom: 8px;
    color: #34495e;
    font-weight: 500;
    font-size: 14px;
}

/* فیلدهای ورودی */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    box-sizing: border-box;
    background: #f8f9fa;
}

/* فوکوس */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #3498db;
    background: white;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

/* دکمه */
button,
input[type="submit"],
input[type="button"] {
    width: 100%;
    padding: 15px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    background: #2980b9;
}

/* فیلدهای چک‌باکس و رادیو */
input[type="checkbox"],
input[type="radio"] {
    margin-right: 8px;
    margin-bottom: 15px;
}

/* پیام خطا */
span {
    color: #e74c3c;
    font-size: 13px;
    display: block;
    margin-top: -15px;
    margin-bottom: 15px;
}

/* لینک */
a {
    color: #3498db;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* جداکننده */
hr {
    border: none;
    height: 1px;
    background: #eee;
    margin: 30px 0;
}

/* لیست */
ul,
ol {
    padding-left: 20px;
    margin-bottom: 20px;
}

li {
    margin-bottom: 8px;
}

/* فیلدهای گروهی */
fieldset {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 25px;
}

legend {
    padding: 0 10px;
    color: #2c3e50;
    font-weight: 600;
}

/* موبایل */
@media (max-width: 600px) {
    form {
        margin: 20px;
        padding: 20px;
    }
    
    input[type="text"],
    input[type="password"],
    input[type="email"],
    input[type="tel"],
    select,
    textarea {
        padding: 10px;
    }
    
    button,
    input[type="submit"] {
        padding: 12px;
    }
}

/* فیلدهای غیرفعال */
input:disabled,
select:disabled,
textarea:disabled {
    background: #ecf0f1;
    cursor: not-allowed;
}

/* فیلدهای ضروری */
input:required,
select:required,
textarea:required {
    border-left: 4px solid #3498db;
}

/* پلِیس‌هولدر */
::placeholder {
    color: #95a5a6;
    opacity: 1;
}

/* اسکرول در textarea */
textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

/* استایل برای validation */
input:invalid,
select:invalid,
textarea:invalid {
    border-color: #e74c3c;
}

input:valid,
select:valid,
textarea:valid {
    border-color: #2ecc71;
}

.com-users-login__options.list-group {
    display: none;
}