* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, sans-serif;
}

body {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    perspective: 1500px;
    background: linear-gradient(180deg, #FEFAEA, #C3CEA1, #606C38, #8D7053, #4D3D2D);
    background-size: 100% 400%;
    animation: bgFlow 35s ease-in-out infinite;
    transition: transform 0.25s;
}


.login-container {

    background: rgba(254, 250, 234, 0.22);
    backdrop-filter: blur(30px);
    border-radius: 32px;
    padding: 60px 80px;
    text-align: center;

    box-shadow:
        0 30px 70px rgba(77, 61, 45, 0.45),
        inset 0 0 30px rgba(254,250,234,0.12);

    animation: enter 1.4s ease;
    transition: transform 0.4s ease, box-shadow 0.4s ease;

    max-width: 480px;
    width: 90%;
}

.login-container:hover {
    transform: translateY(-4px);
    box-shadow:
        0 40px 85px rgba(77, 61, 45, 0.55),
        inset 0 0 40px rgba(254,250,234,0.16);
}

@keyframes enter {
    from {
        opacity: 0;
        transform: translateY(32px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.login-container h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: #4D3D2D;
    animation: textEnter 1.5s ease forwards;
}

.login-container pre {
    font-size: 1rem;
    margin-bottom: 20px;
    color: #4D3D2D;
}


.login-container input {
    width: 100%;
    padding: 15px;
    margin-bottom: 25px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 15px;
    background-color: rgba(255,255,255,0.6);
    color: #333;
}

.btn {
    padding: 18px 50px;
    border-radius: 60px;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #FEFAEA;
    background-size: 400% 400%;
    animation: btnFlow 7s ease infinite;
    transition: transform 0.5s, box-shadow 0.5s;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    margin-top: 10px;
}

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

.login-btn {
    background-image: linear-gradient(45deg, #C3CEA1, #606C38, #8D7053, #C3CEA1);
}

.register-btn {
    background-image: linear-gradient(45deg, #606C38, #8D7053, #4D3D2D, #606C38);
}

.btn:hover {
    transform: scale(1.1) rotateZ(1deg);
    box-shadow: 0 0 60px rgba(77, 61, 45, 0.85), 0 0 30px rgba(254,250,234,0.25);
}

.btn:active {
    transform: scale(0.95) rotateZ(-1deg);
    box-shadow: 0 5px 20px rgba(77,61,45,0.6);
}

.alert {
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 10px;
    font-weight: bold;
}

.alert.success { background-color: #81b29a; color: white; }
.alert.error   { background-color: #e07a5f; color: white; }

@media (max-width: 1024px) {
    .login-container {
        padding: 60px 70px;
        max-width: 420px;
    }

    .login-container h1 {
        font-size: 2.4rem;
    }
}

@media (max-width: 768px) {
    body {
        padding: 20px;
        align-items: flex-start;
    }

    .login-container {
        margin-top: 60px;
        padding: 55px 45px;
        max-width: 100%;
        border-radius: 30px;
    }

    .login-container h1 {
        font-size: 2.2rem;
    }

    .btn {
        width: 100%;
    }
}

@media (max-width: 500px) {
    body {
        padding: 15px;
    }

    .login-container {
        padding: 45px 25px;
        border-radius: 26px;
    }

    .login-container h1 {
        font-size: 1.9rem;
    }

    .login-container input {
        padding: 14px;
        font-size: 14px;
    }

    .btn {
        padding: 15px;
        font-size: 1rem;
        width: 100%;
    }


    .login-container:hover,
    .btn:hover {
        transform: none;
        box-shadow:
            0 30px 70px rgba(77, 61, 45, 0.45),
            inset 0 0 30px rgba(254,250,234,0.1);
    }
}
