* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column; /* لترتيب العناصر تحت بعضها */
    align-items: center;
    justify-content: center;
    direction: rtl;
}

.header {
    text-align: center;
    padding: 20px;
    color: #333;
}

.header h1 {
    margin-bottom: 10px;
}

.container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
    margin: 0 auto; /* To center the container */
}

.login-form {
    padding: 40px;
    text-align: center;
}

.login-form h2 {
    color: #333;
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: 600;
}

.form-group {
    margin-bottom: 20px;
    text-align: right;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    direction: rtl;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

button {
    width: 100%;
    padding: 12px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

#message {
    margin-top: 20px;
    padding: 10px;
    border-radius: 5px;
    display: none;
}

.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .login-form {
        padding: 30px 20px;
    }
}