body,
html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: "Segoe UI", sans-serif;
    overflow: hidden;
}

.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(255, 20, 147, 0.7),
        rgba(75, 0, 130, 0.8),
        rgba(0, 255, 127, 0.6),
        rgba(255, 165, 0, 0.7)
    );
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: -1;
    animation: gradientShift 8s ease-in-out infinite;
}

@keyframes gradientShift {
    0%,
    100% {
        background: linear-gradient(to right, #5d4157, #a8caba);
    }
    50% {
        background: linear-gradient(to right, #e6dada, #274046);
    }
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 20px;
    position: relative;
}

.login-box {
    background: rgba(30, 58, 138, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px;
    width: 100%;
    max-width: 380px;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    animation: formFloat 4s ease-in-out infinite;
    margin: 20px;
}

@keyframes formFloat {
    0%,
    100% {
        transform: translateY(0px) scale(1);
    }

    50% {
        transform: translateY(-5px) scale(1.01);
    }
}

.logo-container {
    text-align: center;
}

.logo {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3));
}

.login-title {
    text-align: center;
    color: rgba(0, 0, 0, 0.9);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 25px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.login-box input {
    display: block;
    width: calc(100% - 24px);
    margin-bottom: 15px;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.login-box input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.login-box input:focus {
    outline: none;
    border-color: rgba(145, 141, 143, 0.8);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 15px rgba(151, 144, 148, 0.4);
    transform: scale(1.02);
}
input:-webkit-autofill {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    transition: background-color 5000s ease-in-out 0s;
    -webkit-text-fill-color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.login-box button {
    display: block;
    width: 100%;
    margin: 20px 0 15px;
    padding: 14px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8));
    color: white;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.login-box button:hover {
    background: linear-gradient(45deg, rgb(0, 0, 0), rgb(173, 162, 184));
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(109, 104, 106, 0.4);
}

.login-box button:active {
    transform: translateY(0px);
}

.icon {
    position: absolute;
    width: 35px;
    height: 35px;
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 50px;
    pointer-events: none;
}

.icon1 {
    position: absolute;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
}

.icon2 {
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(50%, -50%);
}

.icon3 {
    position: absolute;
    bottom: 0;
    left: 47%;
    z-index: 9999;
    transform: translate(-50%, 50%);
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(180deg);
    }
}

@media (max-width: 480px) {
    .login-box {
        padding: 25px 20px;
        margin: 10px;
        border-radius: 15px;
    }

    .logo {
        height: auto;
        width: 100%;
    }

    .login-title {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .login-box input {
        padding: 10px;
        font-size: 15px;
    }

    .login-box button {
        padding: 12px;
        font-size: 15px;
    }

    .icon {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
    .icon i {
        font-size: 40px;
    }
    
}

@keyframes ripple {
    to {
        transform: scale(2);
        opacity: 0;
    }
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group i {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    color: #000000;
}

.input-group input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border-radius: 8px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}
