h1 {
    text-align: center;
    color: white;
}

.body {
    background-image: url('/img/carousel-1.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
    padding: 1rem;
}

.outer-container {
    border-radius: 30px;
    background-color: rgba(71, 76, 67, 0.85);
    padding: 40px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

form {
    color: white;
    width: 100%;
    text-align: center;
}

form div {
    padding: 0.8rem 0;
}

/* Input styling */
.input-fields {
    width: 100%;
    padding: 10px 15px;
    border: none;
    border-radius: 13px;
    background-color: aliceblue;
    height: 40px;
    opacity: 0.9;
    font-size: 1rem;
}

/* Error messages */
.text-danger {
    color: #ffb3b3;
    font-size: 0.85rem;
    text-align: left;
    margin-top: 5px;
}

/* Buttons and links */
.login {
    padding: 10px 25px;
    transition: background-color 0.5s, color 0.5s;
}

.login:hover {
    background-color: rgb(0, 115, 255);
    color: white;
}

.signupLink:hover {
    color: chocolate;
}

span {
    color: white;
}

span a {
    text-decoration: none;
    transition: color 0.3s ease;
}

a.btn.btn-primary {
    background-color: rgb(221, 144, 12);
    border-radius: 20px;
    border: none;
    font-weight: bold;
}

a.btn.btn-primary:hover {
    background-color: rgb(201, 124, 0);
}

/* Error visibility default */
#emailError,
#passwordError,
#formError {
    visibility: hidden;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .outer-container {
        width: 90%;
        padding: 20px;
    }

    .input-fields {
        font-size: 16px;
        height: 40px;
    }

    h1 {
        font-size: 24px;
    }

    .btn {
        width: 100%;
        padding: 10px;
    }

    form div {
        padding: 0.5rem 0;
    }

    .text-danger {
        font-size: 14px;
    }
}
