@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;1,200&display=swap');

* {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;

}

/* Set background image */
body {
    display: flex;
    justify-content: center;
    align-items: flex-start; /* start from the top */
    padding-top: 80px; /* controls spacing from top */
    height: 100vh;
    background: url('../assets/stud-bg.png') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    margin: 0;
}


body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.2); /* adjust for effect */
    z-index: 0;
    pointer-events: none; /* allow clicks to pass through */
}

.login-container {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.1);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    width: 350px;
    text-align: center;
    margin-top: 125px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);

        /* Fade-in animation */
    opacity: 0;
    transform: translateY(30px); /* slight slide from below */
    animation: fadeInLogin 1s ease-out forwards;
}

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

.lars-img {
    width: 200px;
    margin-bottom: 20px;
    animation: pulseLars 2s infinite ease-in-out;
}

@keyframes pulseLars {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1); /* slight zoom in */
    }
    100% {
        transform: scale(1);
    }
}

.lars-img:hover {
    animation-play-state: paused;
}

.login-container h2 {
    margin-bottom: 20px;
    font-weight: 600;
    color: #333;
}

.login-container input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
}

.login-container button {
    width: 100%;
    padding: 12px;
    margin-top: 15px;
    border: none;
    border-radius: 8px;
    background: #ffffff; /* pure white default */
    color: #333; /* dark text for contrast */
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    overflow: hidden; /* prevent overflow when animating */
    position: relative;
    transition: color 0.3s ease;
}

.login-container button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%; /* start completely hidden on the left */
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #f2211d, #f16409, #fad703, #11b01b);
    transition: left 0.6s ease-in-out;
    z-index: 0;
}

.login-container button:hover::before {
    left: 0; /* slide the gradient fully over */
}

.login-container button span {
    position: relative;
    z-index: 1; /* keep text above gradient */
}

.login-container button:hover {
    color: white; /* switch text to white when gradient covers */
}

