body {
    font-family: Arial, 'Segoe UI', sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    direction: rtl;
    line-height: 1.6;
    background: linear-gradient(135deg, #f6f8f9 0%, #e5ebee 100%);
}

.container {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
    transition: all 0.3s ease;
}

.container:hover {
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
}

.form-group input, 
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 16px;
}

.form-group input:focus, 
.form-group select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.2);
}

button {
    width: 100%;
    padding: 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

button:active {
    transform: translateY(1px);
    box-shadow: none;
}

.error-messages {
    color: #d9534f;
    background-color: #ffe6e6;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #ffd1d1;
    display: flex;
    align-items: center;
}

a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    text-decoration: underline;
    color: #0056b3;
}

/* Mobile Responsiveness Enhancements */
@media screen and (max-width: 480px) {
    body {
        background: #f4f4f4;
    }

    .container {
        width: 90%;
        margin: 15px;
        padding: 20px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    }

    .form-group input, 
    .form-group select,
    button {
        font-size: 16px;
        padding: 12px;
    }
}

/* Accessibility and Touch-Friendly Improvements */
@media (hover: hover) and (pointer: fine) {
    button:hover {
        transform: translateY(-2px);
    }
}

@media (hover: none) and (pointer: coarse) {
    button:active {
        background-color: #0056b3;
    }

    .form-group input:focus, 
    .form-group select:focus {
        border-color: #007bff;
    }
}