/* General body styles  */
body {
    font-family: "Nunito", Arial, sans-serif;
    margin: 0;
    background: url("../background.jpg") no-repeat center center fixed;
    background-size: cover;
    color: #333333;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* Central card container */
.container {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 20px;
    padding: 40px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4),
        0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
}

/* Title and animated divider */
.logo {
    font-size: 30px;
    font-weight: bold;
    color: #333333;
    margin-bottom: 10px;
}

.divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #5250d7, #00bcd4);
    margin: 15px auto 25px auto;
    border-radius: 2px;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scaleX(1);
    }

    50% {
        transform: scaleX(1.2);
    }
}

h2 {
    font-size: 22px;
    color: #5250d7;
    margin-bottom: 20px;
}

/* Form fields */
form {
    display: flex;
    flex-direction: column;
    gap: 17px;
    margin-bottom: 20px;
}

label {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
    color: #333333;
}

input[type="email"],
input[type="password"] {
    padding: 14px;
    font-size: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

input[type="email"]:focus,
input[type="password"]:focus {
    border-color: #5250d7;
    box-shadow: 0 0 8px rgba(82, 80, 215, 0.4);
}

/* Login button */
button {
    background-color: #5250d7;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

button:hover {
    background-color: #3e3cc7;
    transform: translateY(-2px);
}

/* Forgot password and register section */
.register-section {
    margin-top: 10px;
    font-size: 13px;
    color: #666666;
}

.register-section a {
    color: #5250d7;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.register-section a:hover {
    color: #3e3cc7;
}

/* Password criteria */
.password-criteria {
    font-size: 12px;
    color: #555555;
    margin-top: 10px;
    text-align: left;
}

.password-criteria ul {
    list-style-type: disc;
    margin-left: 20px;
}

/* Error message styling */
.error {
    color: #e74c3c;
    font-size: 14px;
    margin-bottom: 10px;
}

.footer {
    margin-top: 30px;
    font-size: 12px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.footer a {
    text-decoration: none;
    color: #007bff;
    font-weight: bold;
    padding: 8px 15px;
    border: 1px solid #007bff;
    border-radius: 5px;
    font-size: 12px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.footer a:hover {
    background-color: #007bff;
    color: white;
}