/* Apply gradient animation to the body */
body {
    margin: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(132deg, #000000, #00ff00, #0000ff, #e60073, #ff0000, #ffffff);
    background-size: 400% 400%;
    animation: BackgroundGradient 10s ease infinite;
    font-family: 'Poppins', sans-serif;
}


@keyframes BackgroundGradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Shared glassmorphism style for register/login boxes */
.register-box,
.login-box {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 25px;
    padding: 40px;
    width: 500px;
    box-shadow:
        0 8px 32px 0 rgba(31, 38, 135, 0.37),
        inset 0 0 1px rgba(255, 255, 255, 0.2),
        inset 0 0 20px rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow:
        0 8px 32px 0 rgba(31, 38, 135, 0.37),
        0 0 40px rgba(255, 255, 255, 0.1),
        inset 0 0 1px rgba(255, 255, 255, 0.3);

    /* Optional for better responsiveness */
    @media screen and (max-width: 500px) {

        .login-box,
        .register-box {
            width: 90%;
            padding: 25px;

        }
    }
}

/* Subtle shine on top using ::before */
.register-box::before,
.login-box::before {
    content: "";
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent);
    pointer-events: none;
    z-index: 0;
}

.login-box h2,
.register-box h2 {
    margin-bottom: 40px;
    color: #ffffff;
}

.input-group {
    width: 100%;
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.input-group label {
    width: 100px;
    color: #ffffff;
    font-weight: bold;
    margin-right: 10px;
    text-align: left;
}

.input-group input {
    flex: 1;
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.1);
    max-width: 340px;
}

.input-group input::placeholder {
    color: #ffffff;
    opacity: 0.8;
}

.input-group input:hover,
.input-group input:focus {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4), inset 0 0 10px rgba(255, 255, 255, 0.2);
    outline: none;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.2);
    max-width: 340px;
}

.button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 30px;
    width: 100%;
}

.button-container button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.button-container button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

.register-link,
.login-link {
    margin-top: 15px;
    color: #fff;
    font-size: 14px;
    text-align: center;
}

.register-link a,
.login-link a {
    color: #fff;
    font-weight: bold;
    text-decoration: none;
}

.register-link a:hover,
.login-link a:hover {
    text-decoration: underline;
    color: #ffd700;
}

.password-group {
    position: relative;
}

#toggle-password {
    background: none;
    border: none;
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 54%;
    transform: translateY(-50%);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 3rem;
}

#toggle-password svg {
    pointer-events: none;
}



