* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
 
body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: "Fredoka", sans-serif;
    background: linear-gradient(135deg, #CDE2B4 0%, #A3C16F 50%, #728844 100%);
    position: relative;
    overflow: hidden;
}

body::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(205, 226, 180, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    top: -250px;
    left: -250px;
    animation: float 20s infinite ease-in-out;
}

body::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(114, 136, 68, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -200px;
    right: -200px;
    animation: float 15s infinite ease-in-out reverse;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(50px, 50px);
    }
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;          
    padding: 20px;
    position: relative;
    z-index: 1;
}





.card {
    background: rgba(106, 127, 63, 0.95);
    backdrop-filter: blur(10px);
    padding: 50px 40px;
    border-radius: 30px;
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.5s ease, box-shadow 0.2s ease;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card:hover {
    transform: translateY(-5px);
}




.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeIn 0.8s ease-out 0.2s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}



.logo img {
    width: 65%;
    margin-bottom: 15px;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}



.logo h1 {
    color: #F5F5F5;
    font-size: 2.3rem;
    margin: 0;
    font-weight: bold;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}


.login-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
    animation: fadeIn 0.8s ease-out 0.4s both;
}



.login-form label {
    font-size: 1.3rem;
    font-weight: 500;
    color: #FFFFFF;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    margin-bottom: -8px;
}




.login-form input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.95);
    transition: all 0.3s ease;
    font-family: "Fredoka", sans-serif;
}


.login-form input:focus {
    outline: none;
    border-color: #A3C16F;
    background: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(163, 193, 111, 0.2);
    transform: translateY(-2px);
}

.login-form input::placeholder {
    color: #999;
}



.password-container {
    position: relative;
    width: 100%;
}

.password-container input {
    width: 100%;
    padding: 14px 45px 14px 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.95);
    transition: all 0.3s ease;
    font-family: "Fredoka", sans-serif;
}

.password-container input:focus {
    outline: none;
    border-color: #A3C16F;
    background: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(163, 193, 111, 0.2);
    transform: translateY(-2px);
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 18px;
    color: #666;
    transition: color 0.3s ease;
    z-index: 2;
}

.toggle-password:hover {
    color: #728844;
}




.btn {
    display: inline-block;
    text-align: center;
    width: 100%;
    padding: 14px;
    background: #FFFFFF;
    color: #728844;
    font-size: 1.15rem;
    border-radius: 15px;
    font-weight: 600;
    text-decoration: none; 
    transition: all 0.3s ease;
    margin-top: 10px;
    outline: none;
    border: 2px solid transparent;
    cursor: pointer;
    font-family: "Fredoka", sans-serif;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(163, 193, 111, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    background: #A3C16F;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.btn span {
    position: relative;
    z-index: 1;
}




.error {
    width: 100%;
    padding: 14px 16px;
    margin: 0;
    background: linear-gradient(135deg, #f8d7da 0%, #f5c2c7 100%);
    color: #721c24;
    border: 2px solid #f5c2c7;
    border-radius: 15px;
    font-size: 14px;
    text-align: center;
    font-family: Fredoka, sans-serif;
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    animation: shake 0.5s ease-in-out, fadeIn 0.5s ease-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}




@media (max-width: 480px) {
    .card {
        padding: 40px 30px;
        border-radius: 25px;
    }
    
    .logo h1 {
        font-size: 1.8rem;
    }
    
    .btn {
        font-size: 1rem;
        padding: 12px;
    }
}