/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}


/* Body Styling */
body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #18181B;
    background-size: cover;
    background-position: center;
}


/* Login Container */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    flex-direction: column;
}

/* Form Wrapper */
.form-wrapper {
    width: 420px;
    background: transparent;
    border: 2px solid #fff;
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
    color: #fff;
    border-radius: 12px;
    padding: 30px 40px;
    text-align: center;
}

/* Fallback for browsers that don't support backdrop-filter */
@supports not (backdrop-filter: blur(9px)) {
    .form-wrapper {
        background: rgba(13, 13, 13, 0.95);
    }
}

.form-wrapper h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

.letter {
    display: inline-block;
    transition: transform 0.3s ease-in-out;
}

/* Input Box */
.form-group {
    position: relative;
    width: 100%;
    margin: 20px 0;
}

.form-group input {
    width: 100%;
    height: 45px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, .2);
    border-radius: 40px;
    font-size: 16px;
    color: #fff;
    padding: 10px 20px;
    outline: none;
}

.form-group input::placeholder {
    color: #cac8c8;
}

.form-group label {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: 0.3s;
}

.form-group input:focus ~ label,
.form-group input:valid ~ label {
    top: 5px;
    left: 20px;
    font-size: 12px;
    color: #fff;
}
.form-group i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #cac8c8;
    transition: 0.3s ease-in-out;
    cursor: pointer;
}

.form-group i:hover {
   color: #00aaff;
}
/* Button */
.login-btn {
    width: 100%;
    height: 45px;
    background: #fff;
    border: none;
    border-radius: 40px;
    box-shadow: 0 0 10px rgba(0, 0, 0, .1);
    cursor: pointer;
    font-size: 16px;
    color: #333;
    font-weight: 600;
    margin-top: 10px;
}

.login-btn:hover {
    background-color: darkgray;
}

/* Alert Box */
.alert {
    margin-top: 20px;
    padding: 10px;
    background-color: green;
    color: white;
    border-radius: 5px;
    display: none;
}

/* Loading State for Particles */
.particles-loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #00aaff;
    font-size: 1.2rem;
    text-shadow: 0 0 10px #00aaff;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.5s ease-out;
    background: rgba(0, 0, 0, 0.8);
    padding: 1rem 2rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 170, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 170, 255, 0.2);
    pointer-events: none;
}

#particles {
    position: fixed;
    width: 100%;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease-in;
    background: rgba(13, 13, 13, 0.5);
}

#particles.loaded {
    opacity: 1;
}

#particles.loaded .particles-loading {
    display: none;
}

/* Back to Top Button */
.back-to-top,
.back-to-top.visible,
.back-to-top:hover,
.back-to-top i {
    display: none;
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14.5px;
    margin: -10px 0 15px;
    color: #cac8c8;
}

/* Checkbox Styling */
.remember-forgot label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.remember-forgot input[type="checkbox"] {
    accent-color: #fff;
    margin-right: 5px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Forgot Password Link */
.remember-forgot a {
    color: #fff;
    text-decoration: none;
    transition: 0.3s ease-in-out;
}

.remember-forgot a:hover {
    text-decoration: underline;
    color: #1d4ed8;
}

/* Register Link */
.register-link {
    font-size: 14.5px;
    text-align: center;
    margin: 20px 0 15px;
    color: #cac8c8;
}

/* Register Link Anchor */
.register-link p a {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s ease-in-out;
}
.blur{
    position: absolute;
    box-shadow: 0 0 1000px 50px #00aaff;
    z-index: 1; 
    pointer-events: none; 

    
}
.register-link p a:hover {
    text-decoration: underline;
    color: #1d4ed8;
}

/* Responsive Design */
@media (max-width: 480px) {
    .form-wrapper {
        width: 90%;
        max-width: 400px;
        padding: 15px;
    }

    .form-wrapper h1 {
        font-size: 22px;
        margin-bottom: 10px;
    }

    .form-group input {
        font-size: 14px;
        padding: 8px 15px;
        min-height: 40px;
    }

    .login-btn {
        height: 45px;
        font-size: 14px;
        margin-top: 12px;
        padding: 10px 0;
    }

    .extra-links {
        flex-direction: column;
        align-items: center;
    }

    .extra-links a {
        margin: 5px 0;
    }
}
