:root {
    --color-bg: #000000;           /* Page background */
    --color-border: #181818;       /* Borders */
    --color-card: #0A0A0A;         /* Card/container background */
    --color-accent: #4a90e2;       /* Accent color for headings & buttons */
    --color-input-bg: #111111;     /* Input background */
    --color-text: #ffffff;         /* Default text color */
    --radius: 10px;                /* Card and input border radius */
    --btn-radius: 20px;            /* Pill-shaped button radius */
    --blob-size: 800px;            /* Size of the gradient blob */
    --gradient-blur: 120px;        /* Blur level for softness */
    --gradient-opacity: 0.8;       /* Opacity of the gradient */
    --swirl-duration: 30s;         /* Duration for one full rotation */
}

/* Basic reset and touch optimization */
* {
    box-sizing: border-box;
    touch-action: manipulation;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

/* Prevent zooming on input focus and double-tap */
input, select, textarea, button {
    font-size: 16px !important;
}

html, body {
    touch-action: pan-x pan-y;
    height: 100%;
    overflow-x: hidden;
    position: fixed;
    width: 100%;
}

/* Swirling rainbow gradient background */
body::before {
    content: "";
    position: fixed;
    top: 50%;
    left: 50%;
    width: var(--blob-size);
    height: var(--blob-size);
    background: conic-gradient(red, orange, yellow, green, blue, indigo, violet, red);
    filter: blur(var(--gradient-blur));
    transform: translate(-50%, -50%);
    opacity: var(--gradient-opacity);
    border-radius: 50%;
    animation: swirl var(--swirl-duration) linear infinite;
    z-index: -1;
}

/* Keyframes for smooth, continuous rotation */
@keyframes swirl {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Page styles */
body {
    margin: 0;
    padding: 0;
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: Arial, sans-serif;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    background-color: var(--color-card);
    padding: 40px;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    width: 320px;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--color-accent);
    font-size: 2em;
}

h2 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--color-text);
    font-size: 1.2em;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input {
    padding: 10px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background-color: var(--color-input-bg);
    color: var(--color-text);
    font-size: 1em;
}

input::placeholder {
    color: #999;
}

.login-btn {
    padding: 10px;
    border: none;
    border-radius: var(--btn-radius);
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    background-color: var(--color-accent);
    color: var(--color-text);
}

.login-btn:hover {
    background-color: #3a7fcb;
}

.register-message {
    text-align: center;
    margin-top: 20px;
    color: #888;
    font-size: 14px;
}
