@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: linear-gradient(135deg, #f4b334, #e9ba5b);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.login-container {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    width: 400px;
    max-width: 90%;
    transform: translateY(0);
    opacity: 1;
    transition: all 0.5s ease;
    position: relative;
    z-index: 10;
    animation: fadeInUp 0.8s ease-out;
}

.login-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.login-logo img {
    display: block;
    margin: 0 auto;
    max-width: 200px;
    height: auto;
}

.error-msg {
    color: red;
    padding: 10px;
    margin-bottom: 10px;
    background-color: #ffe0e0;
    border: 1px solid #ff5c5c;
    border-radius: 5px;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-weight: 600;
}

.input-group {
    margin-bottom: 20px;
    position: relative;
}

.input-group input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #ddd;
    border-radius: 50px;
    font-size: 16px;
    transition: all 0.3s ease;
    outline: none;
    background-color: rgba(255, 255, 255, 0.8);
}

.input-group input:focus {
    border-color: #f4b334;
    box-shadow: 0 0 0 3px rgba(110, 142, 251, 0.2);
}

.input-group label {
    position: absolute;
    left: 20px;
    top: 15px;
    color: #777;
    font-size: 16px;
    transition: all 0.3s ease;
    pointer-events: none;
}

.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label {
    top: -10px;
    left: 15px;
    font-size: 12px;
    background-color: white;
    padding: 0 5px;
    color: #f4b334;
}

button {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(to right, #f4b334, #e9ba5b);
    color: white;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(110, 142, 251, 0.4);
}

.back-main {
    text-align: center;
    margin-top: 20px;
}

.back-main a {
    color: #777;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.back-main a:hover {
    color: #f4b334;
}

.circles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.circles li {
    position: absolute;
    display: block;
    list-style: none;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    animation: animate 25s linear infinite;
    bottom: -150px;
    border-radius: 50%;
}

.circles li:nth-child(1) {
    left: 25%;
    width: 80px;
    height: 80px;
    animation-delay: 0s;
}

.circles li:nth-child(2) {
    left: 10%;
    width: 20px;
    height: 20px;
    animation-delay: 2s;
    animation-duration: 12s;
}

.circles li:nth-child(3) {
    left: 70%;
    width: 20px;
    height: 20px;
    animation-delay: 4s;
}

.circles li:nth-child(4) {
    left: 40%;
    width: 60px;
    height: 60px;
    animation-delay: 0s;
    animation-duration: 18s;
}

.circles li:nth-child(5) {
    left: 65%;
    width: 20px;
    height: 20px;
    animation-delay: 0s;
}

.circles li:nth-child(6) {
    left: 75%;
    width: 110px;
    height: 110px;
    animation-delay: 3s;
}

.circles li:nth-child(7) {
    left: 35%;
    width: 150px;
    height: 150px;
    animation-delay: 7s;
}

.circles li:nth-child(8) {
    left: 50%;
    width: 25px;
    height: 25px;
    animation-delay: 15s;
    animation-duration: 45s;
}

.circles li:nth-child(9) {
    left: 20%;
    width: 15px;
    height: 15px;
    animation-delay: 2s;
    animation-duration: 35s;
}


.circles li:nth-child(10) {
    left: 85%;
    width: 150px;
    height: 150px;
    animation-delay: 0s;
    animation-duration: 11s;
}

@keyframes animate {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
        border-radius: 0;
    }
    
    100% {
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
        border-radius: 50%;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.remember-container {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #555;
    user-select: none;
}

.custom-checkbox {
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    display: inline-block;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.custom-checkbox .checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: rgba(0, 0, 0, 0.05);
    border: 2px solid #ccc;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-checkbox:hover .checkmark {
    background-color: rgba(0, 0, 0, 0.1);
}

.custom-checkbox input:checked ~ .checkmark {
    background-color: #f4b334;
    border-color: #f4b334;
}

.custom-checkbox .checkmark:after {
    content: "";
    width: 6px;
    height: 6px;
    padding-bottom: 5px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    display: none;
}

.custom-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.custom-checkbox .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

@media (max-width: 768px) {
    body {
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 100vh;
        padding: 1rem;
    }

    .login-container {
        width: 100%;
        max-width: 90%;
        padding: 20px;
        margin-bottom: 30%;
    }

    h1 {
        font-size: 1.5rem;
    }

    .input-group input {
        padding: 12px 16px;
        font-size: 14px;
    }

    button {
        padding: 12px;
        font-size: 14px;
    }

    .back-main a {
        font-size: 13px;
    }
}