/* Global Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
}

body, html {
    height: 100%;
    overflow: hidden;
}

/* Background Animation */
.login-background {
    background: linear-gradient(-45deg, #2c3e50, #4a90e2, #34495e, #8e44ad);
    background-size: 400% 400%;
    animation: gradientShift 12s ease infinite;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Waves Animation */
.waves-container {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 150px;
    overflow: hidden;
}

.wave {
    position: absolute;
    bottom: 0;
    width: 200%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    opacity: 0.3;
    border-radius: 100%;
    animation: waveMovement 4s infinite linear;
}

#wave1 { animation-duration: 10s; opacity: 0.5; }
#wave2 { animation-duration: 12s; opacity: 0.4; }
#wave3 { animation-duration: 8s; opacity: 0.2; }

/* Keyframes for Waves and Background */
@keyframes waveMovement {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Login Box with Glassmorphism */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.login-box {
    background: rgba(255, 255, 255, 0.15);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    max-width: 400px;
    text-align: center;
    position: relative;
    transition: transform 0.5s ease, box-shadow 0.5s ease, border 0.5s ease;
}

.login-box:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

/* Logo */
.company-logo {
    width: 120px;
    margin-bottom: 25px;
}

/* Form Header */
h2 {
    margin-bottom: 20px;
    font-weight: 500;
    color: white;
    font-size: 32px;
}

/* Input Fields and Dropdown */
.input-container {
    position: relative;
    margin-bottom: 30px;
}

.input-container input,
.input-container select {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transition: background 0.4s ease;
    outline: none;
}

.input-container select {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    appearance: none;
}

.input-container input:focus,
.input-container select:focus {
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid #007bff;
}

.input-container label {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    pointer-events: none;
    transition: all 0.4s ease;
}

.input-container input:focus + label,
.input-container select:focus + label,
.input-container input:valid + label,
.input-container select:valid + label {
    top: -10px;
    left: 10px;
    font-size: 12px;
    color: #007bff;
}

.input-container .icon {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
}

/* Button with Interactive Effect */
.btn {
    background: #007bff;
    color: white;
    padding: 15px;
    width: 100%;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.4s ease, transform 0.3s ease;
    outline: none;
}

.btn:hover {
    background: #0056b3;
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 91, 187, 0.3);
}

.btn:active {
    transform: scale(0.98);
}

/* Snackbar */
#snackbar {
    visibility: hidden;
    min-width: 250px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 2px;
    padding: 16px;
    position: fixed;
    z-index: 1;
    left: 50%;
    transform: translateX(-50%);
    bottom: 30px;
    font-size: 17px;
    transition: visibility 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

#snackbar.show {
    visibility: visible;
    opacity: 1;
    bottom: 50px;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .login-box {
        padding: 20px;
    }
}