.login-container,
.register-container {
    background: rgba(30, 30, 30, 0.7); /* Darker container */
    border: 1px solid rgba(30, 144, 255, 0.1);
    border-radius: 16px;
    padding: 3rem;
    width: 100%;
    max-width: 480px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.login-container h1,
.register-container h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    background: linear-gradient(45deg, #fff, #7EB2FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


@media (max-width: 768px) {

    .login-container,
    .register-container {
        padding: 2rem;
        margin: 1rem;
    }

}

.auth-redirect {
    margin-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6); /* Dimmer text */
    font-size: 0.9rem;
}

.auth-redirect a {
    color: #1E90FF;
    text-decoration: none;
    transition: color 0.3s ease;
    margin-left: 0.25rem;
}

.auth-redirect a:hover {
    color: #7EB2FF;
    text-decoration: underline;
}

/* Custom checkbox styling */
#terms-checkbox-container {
    margin: 15px 0;
}

#terms-checkbox-container label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

#terms-checkbox-container input[type="checkbox"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 1px !important;
    height: 1px !important;
    border: 2px solid rgba(30, 144, 255, 0.5) !important;
    border-radius: 4px !important;
    background: rgba(30, 30, 30, 0.7) !important;
    cursor: pointer !important;
    position: relative !important;
    margin-top: 2px !important;
    transition: all 0.2s ease !important;
    display: inline-block !important;
    vertical-align: middle !important;
    transform: scale(0.6) !important;
    transform-origin: left center !important;
}

#terms-checkbox-container input[type="checkbox"]:checked {
    background: #1E90FF !important;
    border-color: #1E90FF !important;
}

#terms-checkbox-container input[type="checkbox"]:checked::after {
    content: "✓" !important;
    position: absolute !important;
    color: white !important;
    font-size: 30px !important;
    left: 2px !important;
    top: -1px !important;
    display: block !important;
}

#terms-checkbox-container input[type="checkbox"]:hover {
    border-color: #1E90FF !important;
}

#terms-checkbox-container a {
    color: #1E90FF;
    text-decoration: none;
    transition: color 0.3s ease;
}

#terms-checkbox-container a:hover {
    color: #7EB2FF;
    text-decoration: underline;
}

/* auth pages: */
.gradient-bg {
    background: #1a1a1a; /* Dark background */
    background: linear-gradient(
        to bottom right,
        rgba(30, 144, 255, 0.05),
        rgba(0, 0, 0, 0.95)
    );
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
