:root {
    --primary-gradient: linear-gradient(135deg, #C850C0 0%, #4158D0 100%);
    --accent-color: #FF4081; /* Hot Pink */
    --accent-hover: #ff79ac;
    --dark-bg: #111827; /* Dark Blue-Gray */
    --light-text: #F9FAFB;
    --body-text: #D1D5DB;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --danger-color: #F43F5E;
    --success-color: #10B981;
    --font-family: 'Manrope', sans-serif;
    --border-radius: 12px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* FIX: Ensure body and html can fill the full height */
html, body {
    height: 100%;
}

body {
    font-family: var(--font-family);
    background-color: var(--dark-bg);
    color: var(--body-text);
    margin: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
    color: var(--light-text);
    font-weight: 700;
}

.container {
    width: 90%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 0;
}

/* FIX: Make centering robust for login and vote pages */
.centered-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* Use min-height to handle content taller than screen */
    padding: 20px;
}

.hidden { display: none !important; }
.text-center { text-align: center; }

/* --- Forms & Buttons --- */
input[type="text"], input[type="email"], input[type="password"], input[type="number"], select {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    margin-bottom: 15px;
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    background-color: var(--glass-bg);
    color: var(--light-text);
    font-family: var(--font-family);
    font-size: 1rem;
    transition: all 0.2s ease;
}

input::placeholder { color: #9CA3AF; }
input:focus, select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(255, 64, 129, 0.3);
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
}

.button, button {
    padding: 12px 25px;
    border: none;
    border-radius: var(--border-radius);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--light-text);
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}
.button:hover, button:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.1);
}

.button-accent {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}
.button-accent:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

.button-secondary { background: none; }
.button-danger { background-color: var(--danger-color); border: none; }
.button-small { padding: 8px 16px; font-size: 0.85rem; font-weight: 500; }
.button-large { padding: 16px 40px; font-size: 1.1rem; }
button:disabled {
    background-color: rgba(255, 255, 255, 0.1);
    cursor: not-allowed;
    transform: none;
    opacity: 0.5;
}

.error-message {
    color: var(--danger-color);
    font-size: 0.9rem;
    margin-top: 10px;
    text-align: center;
}