/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

input[type=text], input[type=password], input[type=email] {
    /* باقي أسلوب التصميم الخاص بك هنا */
    /* ... */

    /* تهيئة الحقول لتكون فارغة عند إعادة تحميل الصفحة */
    transition: all 0s; /* تحديد أنه لا يوجد تحول (لا تأثير) */
}

* {
    /* تهيئة كل العناصر لتكون فارغة عند إعادة تحميل الصفحة */
    transition: all 0s; /* تحديد أنه لا يوجد تحول (لا تأثير) */
}

.error, .success {
    opacity: 0; /* إخفاء رسائل الحالة بشكل افتراضي */
}


body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-image: url('background.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.container {
    max-width: 400px;
    background-color: rgba(255, 255, 255, 0.8); /* تعديل الشفافية هنا للحصول على خلفية أكثر وضوحًا */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

input[type=text], input[type=password], input[type=email] {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
    background-color: rgba(255, 255, 255, 0.9); /* تعديل الشفافية هنا للحصول على خلفية أكثر وضوحًا */
    outline: none; /* إزالة التحديد عند التركيز */
}

input[type=text]:focus, input[type=password]:focus, input[type=email]:focus {
    box-shadow: 0 0 5px #4CAF50; /* تأثير ظل عند التركيز */
}

button {
    width: 100%;
    padding: 12px;
    background-color: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

button:hover {
    background-color: #45a049;
}

.error, .success {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    text-align: center;
    font-size: 14px;
}

.error {
    background-color: rgba(244, 67, 54, 0.8); /* تعديل الشفافية هنا للحصول على خلفية أكثر وضوحًا */
    color: white;
}

.success {
    background-color: rgba(76, 175, 80, 0.8); /* تعديل الشفافية هنا للحصول على خلفية أكثر وضوحًا */
    color: white;
}

a {
    display: block;
    text-align: center;
    margin-top: 15px;
    color: #4CAF50;
    text-decoration: none;
    font-size: 14px;
}

a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .container {
        max-width: 90%;
    }
}
