* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
    color: #fff;
    overflow-x: hidden;
    background: #121212;
}

/* Edge-to-Edge Layout */
.edge-to-edge {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Video Background */
.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

#bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lazy {
    opacity: 0;
    transition: opacity 2s ease-in;
}

.lazy.loaded {
    opacity: 1;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.65));
}

/* Particle Background */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Header */
header {
    padding: 8px 0;
    text-align: center;
    width: 100%;
}

.brand-text {
    font-size: 1.6em;
    text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.9);
    letter-spacing: 2px;
}

.gradient-text {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #ff6b6b);
    background-size: 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 6s ease-in-out infinite;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 10px 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

.hero h2.animated-text {
    font-size: 1.7em;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 1);
    margin-bottom: 15px;
}

/* Auth Container */
.auth-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    padding: 12px;
    border-radius: 16px;
    max-width: 100%;
    margin: 8px 6px;
    color: #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3), inset 0 0 15px rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-container h3 {
    margin-bottom: 8px;
    font-size: 1.1em;
    color: #fff;
}

#email, #password {
    width: 100%;
    padding: 7px;
    margin: 4px 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 0.85em;
    background: rgba(255, 255, 255, 0.02);
    color: #fff;
    transition: border-color 0.4s, box-shadow 0.4s, transform 0.3s;
}

#email:focus, #password:focus {
    border-color: #4ecdc4;
    box-shadow: 0 0 10px rgba(78, 205, 196, 0.5);
    outline: none;
    transform: scale(1.03);
}

#email::placeholder, #password::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.cta-button {
    display: block;
    width: 100%;
    padding: 8px;
    background: linear-gradient(45deg, #007bff, #4ecdc4);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.85em;
    border: none;
    cursor: pointer;
    margin: 6px 0;
    transition: transform 0.4s, box-shadow 0.4s, background 0.4s;
}

.cta-button:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(78, 205, 196, 0.6);
    background: linear-gradient(45deg, #4ecdc4, #007bff);
}

.cta-button:disabled {
    background: #4a4a4a;
    cursor: not-allowed;
}

.google-btn {
    background: linear-gradient(45deg, #db4437, #f28b82);
}

.google-btn:hover {
    box-shadow: 0 6px 15px rgba(219, 68, 55, 0.6);
    background: linear-gradient(45deg, #f28b82, #db4437);
}

.whatsapp-btn {
    background: linear-gradient(45deg, #25D366, #128C7E);
}

.whatsapp-btn:hover {
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.6);
    background: linear-gradient(45deg, #128C7E, #25D366);
}

.google-btn i, .whatsapp-btn i {
    margin-right: 6px;
}

#recaptcha-container {
    margin: 6px 0;
    transform: scale(0.8);
    transform-origin: center;
}

#error-message, #success-message {
    font-size: 0.75em;
    margin-top: 4px;
}

/* Footer */
footer {
    text-align: center;
    padding: 8px 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.9));
}

footer p {
    font-size: 0.75em;
}

.policy-link {
    color: #4ecdc4;
    text-decoration: none;
    transition: color 0.3s;
}

.policy-link:hover {
    color: #007bff;
}

/* Cookie Consent Popup */
.cookie-popup {
    position: fixed;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(230, 230, 230, 0.85));
    padding: 10px;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), inset 0 0 8px rgba(255, 255, 255, 0.25);
    max-width: 95%;
    text-align: center;
    color: #111;
    z-index: 1000;
    display: none;
}

.cookie-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.cookie-icon {
    font-size: 1.3em;
    color: #4ecdc4;
    animation: pulse 2s ease-in-out infinite;
}

.cookie-popup p {
    font-size: 0.8em;
    margin: 0;
}

.cookie-buttons {
    display: flex;
    gap: 5px;
}

.reject-btn {
    background: linear-gradient(45deg, #6c757d, #adb5bd);
}

.reject-btn:hover {
    box-shadow: 0 6px 15px rgba(108, 117, 125, 0.6);
}

/* Animations */
@keyframes slideIn {
    0% { opacity: 0; transform: translateY(-20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes pulseIn {
    0% { opacity: 0; transform: scale(0.8); }
    50% { transform: scale(1.1); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes floatUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.6); }
    50% { transform: scale(1.2); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.animate-slide-in {
    animation: slideIn 1.2s ease-out;
}

.animate-pulse-in {
    animation: pulseIn 1.4s ease-out;
}

.animate-float-up {
    animation: floatUp 1.1s ease-out;
}

.animate-bounce-in {
    animation: bounceIn 0.6s ease-out;
}

/* Mobile-First Responsive Design */
@media (min-width: 768px) {
    .brand-text { font-size: 2.1em; }
    .hero h2 { font-size: 2.3em; }
    .auth-container { max-width: 320px; margin: 12px auto; }
    .cookie-popup { max-width: 360px; }
    #recaptcha-container { transform: scale(0.95); }
}