/* --- Animációk definíciója --- */
@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 5px rgba(40, 167, 69, 0.2), 0 0 10px rgba(40, 167, 69, 0.2);
    }
    100% {
        box-shadow: 0 0 10px rgba(40, 167, 69, 0.5), 0 0 20px rgba(40, 167, 69, 0.3);
    }
}


/* --- Globális beállítások --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
    background-color: #1a1a1a;
}

#bg-video {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    z-index: -1;
    object-fit: cover;
    filter: blur(3px) brightness(0.8); /* Kicsit sötétítjük is a videót */
}

/* --- Bejelentkező doboz --- */
.login-container {
    width: 420px;
    padding: 40px;
    background: rgba(20, 20, 20, 0.6);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    text-align: center;
    
    /* Belépő animáció */
    animation: fadeInSlideUp 0.8s ease-out forwards;
}

/* --- Fejléc (cím, alcím, ikon) --- */
.login-header {
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 20px;
    opacity: 0; /* Kezdetben láthatatlan */
    animation: fadeIn 0.8s ease-out 0.4s forwards; /* Késleltetett animáció */
}

.login-header i {
    font-size: 36px;
    color: #28a745; /* Zöld ikon */
    margin-bottom: 10px;
}

.login-header h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}

.login-header p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

/* --- Input mezők --- */
.input-group {
    position: relative;
    margin-bottom: 25px;
    opacity: 0; /* Kezdetben láthatatlan */
    animation: fadeIn 0.8s ease-out 0.6s forwards; /* Késleltetett animáció */
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.3s ease;
}

.login-container input[type="password"],
.login-container input[type="text"] {
    width: 100%;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    border-radius: 10px;
    padding: 0 15px 0 50px;
    color: #fff;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    outline: none;
    transition: border-color 0.3s ease;
}

.login-container input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.login-container input:focus {
    border-color: #28a745;
    /* Pulzáló glow effektus */
    animation: pulseGlow 1.5s infinite alternate ease-in-out;
}

.login-container .input-group:focus-within i {
    color: #28a745;
}

/* --- Belépés gomb --- */
.login-container input[type="submit"] {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    /* Zöld gradient háttér */
    background: linear-gradient(45deg, #28a745, #218838);
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    opacity: 0; /* Kezdetben láthatatlan */
    animation: fadeIn 0.8s ease-out 0.8s forwards; /* Késleltetett animáció */
}

.login-container input[type="submit"]:hover {
    background: linear-gradient(45deg, #218838, #1e7e34);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.login-container input[type="submit"]:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
}