
/* Modern Animated Login Page CSS */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: url("../images/background_image.jpg") no-repeat center center fixed;
    background-size: cover;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    animation: fadeIn 1s ease-in;
    margin: 0;
}

body::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-container {
    z-index: 1;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 40px 35px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    animation: popUp 0.6s ease;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@keyframes popUp {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.login-container h2 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 28px;
    font-weight: 600;
    color: #ffffff;
}

form {
    display: flex;
    flex-direction: column;
    width: 100%;
}

label {
    font-size: 14px;
    margin-top: 15px;
    margin-bottom: 6px;
    color: #f1f1f1;
}

input[type="text"],
input[type="password"],
select,
button[type="submit"] {
    margin-bottom: 16px;
    padding: 12px 15px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    outline: none;
    transition: 0.3s ease;
    width: 100%;
}

input::placeholder {
    color: #ddd;
}

input:focus,
select:focus {
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

/* Dropdown CSS */
select {
    margin-bottom: 16px;
    padding: 12px 15px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    outline: none;
    transition: 0.3s ease;
    width: 100%;
    appearance: none;
    box-sizing: border-box;
}

select:focus {
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

select option {
    background-color: #fff;
    color: #222;
}

button[type="submit"] {
    background: linear-gradient(to right, #00bcd4, #3f51b5);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    border-radius: 8px;
}

button[type="submit"]:hover {
    background: linear-gradient(to right, #00acc1, #00c853);
}

/* Forgot password */
.forgot-link {
    margin-top: 10px;
    text-align: center;
}

.forgot-link a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.forgot-link a:hover {
    color: #ffffff;
}

/* Sign up link */
.signup-link {
    margin-top: 15px;
    text-align: center;
    font-size: 14px;
    color: #e0e0e0;
}

.signup-link a {
    color: #00e5ff;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.signup-link a:hover {
    color: #ffffff;
}

/* Error message */
.error-message {
    color: #ffb3b3;
    font-size: 14px;
    text-align: center;
    margin-bottom: 15px;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .login-container {
        padding: 30px 25px;
        max-width: 90%;
    }

    h2 {
        font-size: 24px;
    }

    select {
        font-size: 14px;
        padding: 10px 12px;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 25px 20px;
        max-width: 90%;
    }

    h2 {
        font-size: 22px;
    }

    select {
        font-size: 14px;
        padding: 10px 12px;
    }

    input[type="text"],
    input[type="password"],
    button[type="submit"] {
        padding: 10px 12px;
        font-size: 14px;
    }

    .forgot-link a,
    .signup-link a {
        font-size: 12px;
    }
}
