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

body {
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.glass-container {
    width: 380px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Password Field Styling */
.password-container { position: relative; width: 100%; }
.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
}

.input-field {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    outline: none;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 10px;
    transition: 0.3s;
}

.submit-btn:hover { background: #e0e0e0; }

.button-box { width: 200px; margin: 0 auto 30px; position: relative; background: rgba(0,0,0,0.2); border-radius: 30px; display: flex; }
.toggle-btn { padding: 10px 20px; cursor: pointer; background: transparent; border: 0; outline: none; color: white; z-index: 1; }
#btn-bg { top: 0; left: 0; position: absolute; width: 100px; height: 100%; background: #fff; border-radius: 30px; transition: 0.4s; }

#login-form { left: 0; transition: 0.5s; position: relative; }
#register-form { left: 400px; transition: 0.5s; position: absolute; top: 125px; width: 320px; }
