* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Open Sans', 'Arial', sans-serif;
}

img{
    -webkit-user-drag: none;
    user-drag: none;
}

body {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #313131; /* Sötétebb háttér szín */
    overflow: hidden;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.login-box {
    background-color: rgba(0, 0, 0, 0.1); /* Enyhe átlátszóság */
    padding: 50px;
    border-radius: 10px;
    text-align: center;
    backdrop-filter: blur(5px); /* Homályosítás */
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5); /* Mélyebb árnyék */
    animation: slide-in 1s ease-out; /* Belépő animáció */
    max-width: 400px; /* Szélesebb doboz */
    width: 100%;
}

@keyframes slide-in {
    from {
        transform: translateY(-100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.login-box h2 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 50px;
    letter-spacing: 2px;
    animation: fade-in 1.5s ease-out; /* Cím animáció */
    text-transform: uppercase;
    letter-spacing: 5px;
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.input-box {
    position: relative;
    margin-bottom: 30px;
    animation: input-fade-in 2s ease-out; /* Input mezők animációja */
}

@keyframes input-fade-in {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.input-box input {
    width: 100%;
    padding: 12px 0;
    font-size: 16px;
    color: #fff;
    background: transparent;
    border: none;
    border-bottom: 2px solid #313131;
    outline: none;
    transition: all 0.3s ease;
}

.input-box input:focus {
    border-bottom-color: #1ed760; /* Input fókusz szín */
}

.input-box label {
    position: absolute;
    top: 0;
    left: 0;
    padding: 12px 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    transition: 0.5s;
    pointer-events: none;
    text-transform: uppercase;
}

.input-box input:focus ~ label,
.input-box input:valid ~ label {
    top: -20px;
    left: 0;
    color: #1ed760;
    font-size: 12px;
}

.login-btn {
    background-color: #313131;
    border: none;
    color: white;
    padding: 15px;
    width: 100%;
    border-radius: 10px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1);  /* Gomb árnyék */
    animation: button-bounce 2.5s infinite; /* Lebegő animáció a gombnál */
    margin-top: 50px;
    &:disabled{
        opacity: 0.2;
        &:hover{
            background-color: #313131;
            cursor:not-allowed;
        }
    }
}
.error-box {
    background-color: rgba(255, 0, 0, 0.7); /* Piros háttér */
    color: white;
    padding: 10px;
    border-radius: 8px; /* Lekerekített sarkok */
    margin-top: 15px; /* Különbség a form és a hiba box között */
    animation: fade-in 0.5s ease; /* Fade-in animáció */
    margin-top: 30px;
    animation: size-change 1.5s infinite;
    #errorMessage{
        display: flex;
        align-items: center;
        padding: 0px 10px;
        justify-content: space-between;
    }
}

.success-box {
    background-color: rgba(0, 255, 21, 0.7); /* Piros háttér */
    color: white;
    padding: 10px;
    border-radius: 8px; /* Lekerekített sarkok */
    margin-top: 15px; /* Különbség a form és a hiba box között */
    animation: fade-in 0.5s ease; /* Fade-in animáció */
    margin-top: 30px;
    animation: size-change 1.5s infinite;
    #errorMessage{
        display: flex;
        align-items: center;
        padding: 0px 10px;
        justify-content: space-between;
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
@keyframes button-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes size-change {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.login-btn:hover {
    background-color: #1ed760;
}
