/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

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

/* Light-Themed Background */
body {
    background: linear-gradient(120deg, #eef2f3, #f5f5f5);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 20px;
}

/* Login Container */
.container {
    position: relative;
    width: 400px;
    background: rgba(255, 255, 255, 0.5);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(15px);
    animation: fadeIn 1s ease-in-out;
    text-align: center;
}

/* Form Box */
.form-box {
    width: 100%;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease-in-out;
}

/* Title */
h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 600;
}

/* Input Fields */
input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: none;
    outline: none;
    background: rgba(0, 0, 0, 0.1);
    color: #333;
    border-radius: 5px;
    font-size: 16px;
    transition: all 0.3s ease-in-out;
}

input:focus {
    background: rgba(0, 0, 0, 0.2);
    transform: scale(1.03);
}

/* Password Container */
.password-container {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
    font-size: 18px;
    transition: 0.3s ease-in-out;
}

.toggle-password:hover {
    color: #ffcc00;
}

/* Remember Me & Forgot Password */
.option-field {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    margin: 10px 0;
}

.remember-me label {
    cursor: pointer;
    color: #555;
}

.forgot-link {
    color: #ffcc00;
    text-decoration: none;
    transition: 0.3s;
}

.forgot-link:hover {
    color: #e6b800;
    text-decoration: underline;
}

/* Buttons */
button {
    width: 100%;
    padding: 12px;
    background: #ffcc00;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease-in-out;
}

button:hover {
    background: #e6b800;
    transform: scale(1.05);
}

/* Toggle Buttons */
.button-box {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.toggle-btn {
    width: 48%;
    padding: 10px;
    background: transparent;
    border: 1px solid #ffcc00;
    color: #333;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease-in-out;
}

.toggle-btn.active {
    background: #ffcc00;
    color: black;
}

.toggle-btn:hover {
    background: #e6b800;
}

/* Form Switching */
.form {
    display: none;
    transition: all 0.3s ease-in-out;
    opacity: 0;
    transform: translateY(20px);
}

.form.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 500px) {
    .container {
        width: 90%;
        padding: 15px;
    }

    h2 {
        font-size: 20px;
    }

    input {
        font-size: 14px;
        padding: 10px;
    }

    button {
        font-size: 14px;
    }

    .toggle-btn {
        font-size: 14px;
    }
}
