@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
}

.body-background {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #0c0a1f; 
    color: #fff; 
    background-image: 
        radial-gradient(1px 1px at 50px 50px, #fff, transparent),
        radial-gradient(1px 1px at 100px 200px, #fff, transparent),
        radial-gradient(1px 1px at 400px 300px, #fff, transparent),
        radial-gradient(2px 2px at 300px 150px, #eee, transparent),
        radial-gradient(1px 1px at 150px 350px, #fff, transparent),
        radial-gradient(2px 2px at 250px 250px, #eee, transparent);
    background-size: 500px 500px; 
    animation: moveStars 120s linear infinite;
}

.container {
    max-width: 420px;
    width: 90%;
    background-color: rgba(60, 30, 30, 0.6); 
    border: 2px solid rgba(255, 180, 180, 0.4); 
    backdrop-filter: blur(15px); 
    border-radius: 15px;
    color: #fff;
    padding: 40px;
    box-shadow: 0 0 30px rgba(198, 40, 40, 0.4); 
    transition: all 0.3s ease; 
}

.container h1 {
    font-size: 32px;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(198, 40, 40, 0.9), 0 0 20px rgba(183, 28, 28, 0.5); 
}

.input-box {
    position: relative;
    width: 100%;
    height: 50px;
    margin: 30px 0;
}

.input-box input {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    border: 2px solid rgba(255, 200, 200, 0.5); 
    border-radius: 40px;
    font-size: 1em;
    color: #fff;
    padding: 0 45px 0 20px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-box input:focus,
.input-box input:valid {
    border-color: #c62828; 
    box-shadow: 0 0 10px rgba(198, 40, 40, 0.8); 
}

.input-box .bx {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2em;
    color: rgba(255, 255, 255, 0.8);
    pointer-events: none;
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    font-size: 0.9em;
    margin: -15px 0 15px;
    color: #fff;
}

.remember-forgot label input {
    accent-color: #c62828; 
    margin-right: 5px;
}

.remember-forgot a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.remember-forgot a:hover {
    color: #c62828; 
    text-decoration: underline;
}

.login-button {
    width: 100%;
    height: 45px;
    background: #c62828; 
    border: none;
    outline: none;
    border-radius: 40px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    font-size: 1em;
    color: #fff; 
    font-weight: 600;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.login-button:hover {
    background: #b71c1c; 
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(183, 28, 28, 0.8); 
}

.register-link {
    font-size: 0.9em;
    text-align: center;
    color: #fff;
}

.register-link p a {
    color: #c62828; 
    text-decoration: none;
    font-weight: 600;
    transition: text-decoration 0.3s ease;
}

.register-link p a:hover {
    text-decoration: underline;
}

@keyframes moveStars {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 500px 1000px; 
    }
}