/* Reset some default styles */
body, h1, p, a, input, button {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Basic styles for body */
body {
    font-family: Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: linear-gradient(to bottom right, #f5f7fa, #c3cfe2); /* Soft gradient background */
}

/* Header styles with image overlay */
header {
    position: relative;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay */
    color: #fff;
    padding: 2rem;
    text-align: center;
    overflow: hidden;
}

header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://i.pinimg.com/564x/96/fe/f6/96fef6011405307cee68db0684eeea19.jpg') no-repeat center center;
    background-size: cover;
    opacity: 0.4;
    z-index: -1; /* Behind the text */
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Main content styles with image effect */
main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.8); /* Light background for content */
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin: 0 1rem;
}

.form-container {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
}

form {
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: .5rem;
}

input[type="email"],
input[type="password"] {
    padding: .75rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

button {
    padding: .75rem;
    background: #004080;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background: #003366;
}

p {
    margin: 1rem 0;
}

a {
    color: #004080;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.error {
    color: #ff0000;
}

/* Footer styles with subtle image effect */
footer {
    background: rgba(0, 0, 0, 0.5); /* Dark overlay */
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    position: relative;
}

footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://i.pinimg.com/564x/25/bc/cc/25bccc6eb931379e4345969d621be018.jpg') no-repeat center center;
    background-size: cover;
    opacity: 0.3;
    z-index: -1; /* Behind the text */
}

/* Responsive styles */
@media (max-width: 600px) {
    header h1 {
        font-size: 1.8rem;
    }

    .form-container {
        padding: 1rem;
    }

    main {
        padding: 1rem;
    }
}
/* تحسين استايل الحقول */
input[type="text"],
input[type="email"],
input[type="password"] {
    padding: 1rem; /* زيادة الحشو */
    margin-bottom: 1rem; /* المسافة بين الحقول */
    border: 1px solid #ddd; /* لون الحدود */
    border-radius: 5px; /* زوايا مستديرة للحقل */
    font-size: 16px; /* حجم الخط داخل الحقل */
}

/* تحسين استايل زر التسجيل */
button {
    padding: 1rem; /* زيادة الحشو */
    background: #004080; /* اللون الخلفي للزر */
    color: #fff; /* لون النص */
    border: none;
    border-radius: 5px; /* زوايا مستديرة للزر */
    cursor: pointer; /* تغيير شكل المؤشر عند التمرير فوق الزر */
    font-size: 16px; /* حجم الخط */
}

button:hover {
    background: #003366; /* لون خلفية الزر عند التمرير فوقه */
}

/* تحسين استايل العناوين والنصوص */
label {
    font-size: 16px; /* حجم الخط للعناوين */
    margin-bottom: .5rem; /* المسافة أسفل العناوين */
    color: #333; /* لون النصوص */
}

h1 {
    font-size: 2.5rem; /* حجم الخط للعناوين الكبيرة */
}

/* تحسين استايل رسالة الخطأ */
.error {
    color: #ff0000; /* لون النصوص في حالة الخطأ */
    margin-bottom: 1rem; /* المسافة أسفل رسالة الخطأ */
}
