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

/* The gradient lives on the root element so it also paints Safari's overscroll area and
   the safe areas, instead of leaving a flat band around an animated page. */
html {
    color-scheme: dark;
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    background: var(--bg-base) linear-gradient(120deg, var(--bg-from) 0%, var(--bg-to) 100%);
    background-size: 200% 200%;
    animation: backgroundShift 3s ease-in-out infinite;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

body::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 70% 30%, var(--glow-1) 0%, var(--glow-1-mid) 40%, transparent 65%),
        radial-gradient(circle at 20% 80%, var(--glow-2) 0%, var(--glow-2-mid) 40%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

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

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-card {
    background: var(--surface);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 0 25px var(--shadow-soft);
    text-align: center;
    backdrop-filter: blur(6px);
}

.logo {
    font-size: 32px;
    font-weight: bold;
    color: var(--text);
    letter-spacing: 4px;
    text-shadow: 0 0 10px var(--text-glow);
    margin-bottom: 10px;
}

.subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.dx-texteditor {
    margin-bottom: 15px;
}

.register-link {
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-dim);
}

.register-link a {
    color: var(--text);
    text-decoration: underline;
}

.dx-button {
    background-color: var(--btn-bg) !important;
    color: var(--btn-fg) !important;
    border-radius: 10px !important;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.dx-button:hover {
    background-color: var(--btn-bg-hover) !important;
    color: var(--btn-fg) !important;
    cursor: pointer;
}

.footer-credit {
    margin-top: 30px;
    font-size: 12px;
    color: var(--text-dim);
    opacity: 0.6;
}

#gdpr {
    margin: 15px 0;
}

#gdpr .dx-checkbox-text {
    color: var(--text);
    font-size: 14px;
    vertical-align: middle;
}

#gdpr .dx-checkbox-icon {
    background-color: var(--btn-bg);
    border: 1px solid var(--text-dim);
    border-radius: 4px;
}

#gdpr .dx-checkbox-checked .dx-checkbox-icon {
    background-color: var(--btn-bg-hover);
}

.gdpr-tooltip-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--accent);
    color: var(--text);
    text-align: center;
    line-height: 16px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    margin-left: 5px;
}

#gdpr-checkbox .dx-checkbox-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}