body,
html {
    margin: 0px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: backgroundSlider 10s infinite;
}

@keyframes backgroundSlider {
    0% {
        background-image: url("../img/img1.jpeg");
    }

    33% {
        background-image: url("../img/img2.png");
    }

    66% {
        background-image: url("../img/img3.png");
    }

    100% {
        background-image: url("../img/img1.jpeg");
    }
}

body {
    font-family: 'Times New Roman', Times, serif;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 100vh;
    padding-right: 50px;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.text {
    color: white;
    font-size: 30px;
    font-weight: bold;
    text-align: center;
    margin-left: -10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.text h1 {
    text-align: center;
    font-size: 50px;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}


form {
    background: linear-gradient(to bottom, rgba(3, 49, 99, 0.8), rgba(35, 104, 179, 0.8), rgba(182, 211, 243, 0.8));
    color: white;
    opacity: 0.9;
}

form {
    max-width: 650px;
    margin: 5px auto;
    padding: 25px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    font-family: Arial, sans-serif;
    opacity: 0.9;
}

form input[type="text"],
form input[type="email"],
form select[name="pays"],
form input[type="password"] {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
}

form button[type="submit"] {
    width: 100%;
    padding: 10px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

form button[type="submit"]:hover {
    background-color: #0056b3;
}

form label {
    font-size: 14px;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
    color: #080808;
}

form .error {
    color: red;
    font-size: 15px;
    margin-top: -8px;
    margin-bottom: 10px;
}

form h1 {
    text-align: center;
    margin-bottom: 20px;
    margin-top: 0px;
    color: #fffbfb;
}

@media (max-width: 768px) {
    body {
        flex-direction: column;
        justify-content: center;
        padding: 20px;
    }

    .text {
        font-size: 24px;
        margin-left: 0;
    }

    .text h1 {
        font-size: 36px;
    }

    form {
        width: 100%;
        padding: 15px;
        box-shadow: none;
    }

    form input[type="text"],
    form input[type="email"],
    form select[name="pays"],
    form input[type="password"] {
        font-size: 12px;
    }

    form button[type="submit"] {
        font-size: 14px;
    }

    form h1 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    body{
        margin: 30px;
    }
    .text {
        font-size: 20px;
    }

    .text h1 {
        font-size: 28px;
    }

    form {
        padding: 15px;
    }

    form input[type="text"],
    form input[type="email"],
    form select[name="pays"],
    form input[type="password"] {
        font-size: 10px;
    }

    form button[type="submit"] {
        font-size: 12px;
    }

    form h1 {
        font-size: 20px;
    }
}