/* Form Styles */
.hayat-form {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    direction: rtl;
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 5px;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 0.875rem;
    font-weight: 600;
}

.password-strength.weak {
    background-color: #ffebee;
    color: #c62828;
}

.password-strength.medium {
    background-color: #fff3e0;
    color: #ef6c00;
}

.password-strength.strong {
    background-color: #e8f5e9;
    color: #2e7d32;
}

/* Form Sections */
.form-section {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.form-section h3 {
    color: #2271b1;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-right: 1rem;
    border-right: 3px solid #2271b1;
}

.form-row {
    margin-bottom: 1.5rem;
    position: relative;
}

/* Text Alignment */
.text-center {
    text-align: center;
    display: block;
    margin-top: 0.5rem;
}

/* Form Messages */
.notice {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem;
    border-radius: 4px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.form-row label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-row input,
.form-row select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin-bottom: 0.25rem;
}

.form-row input[type="file"] {
    padding: 0.5rem;
    border: 2px dashed #ddd;
    background: #f9f9f9;
    cursor: pointer;
}

.form-row input[type="file"]:hover {
    border-color: #2271b1;
    background: #f0f0f1;
}

.form-row input:focus,
.form-row select:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

/* Loading State */
.form-row select.loading {
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%201c-4.9706%200-9%204.0294-9%209s4.0294%209%209%209%209-4.0294%209-9-4.0294-9-9-9zm0%2016c-3.866%200-7-3.134-7-7s3.134-7%207-7%207%203.134%207%207-3.134%207-7%207z%22%20fill%3D%22%23ccc%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
    opacity: 0.7;
}

/* Error States */
.form-row input.error,
.form-row select.error {
    border-color: #dc3232;
    background-color: #fff8f8;
}

.form-row .error-message {
    color: #dc3232;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
    animation: fadeIn 0.3s ease-in;
}

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

.form-row .description {
    color: #666;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.form-row input.error + .error-message,
.form-row select.error + .error-message {
    display: block;
}

/* Submit Button */
.hayat-button {
    background: #2271b1;
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 1rem;
}

.hayat-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.7;
}

.hayat-button:not(:disabled):hover {
    background: #135e96;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hayat-button:hover {
    background: #135e96;
}

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

/* Success/Error Notices */
.notice {
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
    border-right: 4px solid;
    text-align: right;
}

.notice.success {
    background-color: #f0f6e8;
    border-right-color: #46b450;
}

.notice.error {
    background-color: #fbeaea;
    border-right-color: #dc3232;
}

.notice p {
    margin: 0;
    line-height: 1.4;
}

/* RTL Support */
.rtl .form-row label {
    text-align: right;
}

.rtl .form-row select.loading {
    background-position: left 10px center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hayat-form {
        padding: 1rem;
        margin: 1rem;
    }
    
    .form-row input,
    .form-row select,
    .hayat-button {
        font-size: 16px; /* Prevent zoom on mobile */
    }
}
