* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --primary: #c4ff00;
    --secondary: #ff3366;
    --accent: #00ffcc;
    --dark: #0a0e27;
    --medium: #1a1e3a;
    --light: #2a2e4a;
    --glass: rgba(26, 30, 58, 0.4);
    --glass-border: rgba(196, 255, 0, 0.1);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --transition: cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background: var(--dark);
    color: var(--text-primary);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Canvas de fondo */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.6;
}

/* Efecto de gradiente animado */
.gradient-bg {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 20% 50%, rgba(196, 255, 0, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(0, 255, 204, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 40% 20%, rgba(255, 51, 102, 0.05) 0%, transparent 50%);
    animation: gradient-shift 20s ease infinite;
    z-index: 1;
}

@keyframes gradient-shift {
    0%, 100% { transform: rotate(0deg) scale(1); }
    33% { transform: rotate(120deg) scale(1.1); }
    66% { transform: rotate(240deg) scale(0.95); }
}

/* Contenedor principal */
.login-container {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Tarjeta de login */
.login-card {
    width: 100%;
    max-width: 420px;
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 60px 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25),
                inset 0 0 0 1px rgba(255, 255, 255, 0.03);
    position: relative;
    overflow: hidden;
    animation: card-appear 0.8s var(--transition) forwards;
    opacity: 0;
    transform: translateY(20px);
    text-align: center;
}

@keyframes card-appear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Efecto de brillo en hover */
.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(196, 255, 0, 0.05),
        transparent
    );
    transition: left 0.8s var(--transition);
}

.login-card:hover::before {
    left: 100%;
}

/* Logo */
.logo-section {
    margin-bottom: 40px;
}

.admin-logo {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    position: relative;
    cursor: pointer;
}

.logo-ring {
    position: absolute;
    border: 2px solid var(--primary);
    border-radius: 50%;
    opacity: 0.5;
    animation: rotate 15s linear infinite;
}

.logo-ring:nth-child(1) {
    inset: 0;
    animation-direction: normal;
}

.logo-ring:nth-child(2) {
    inset: 25%;
    animation-direction: reverse;
    opacity: 0.7;
}

.logo-ring:nth-child(3) {
    inset: 40%;
    opacity: 1;
    animation-duration: 10s;
}

@keyframes rotate {
    to { transform: rotate(360deg); }
}

.logo-center {
    position: absolute;
    inset: 35%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    filter: blur(10px);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; }
}

.admin-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

.admin-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.admin-description {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

/* Botón de Google */
.google-login-btn {
    width: 100%;
    padding: 18px 24px;
    background: white;
    border: none;
    border-radius: 15px;
    color: #1a1a1a;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.google-logo {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.google-login-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(196, 255, 0, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.google-login-btn:active::before {
    width: 300px;
    height: 300px;
}

.google-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, white 0%, rgba(196, 255, 0, 0.1) 100%);
}

.google-login-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Separador */
.security-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Indicadores de seguridad */
.security-badges {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.security-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.security-badge:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.security-icon {
    font-size: 24px;
    color: var(--accent);
    filter: drop-shadow(0 0 10px currentColor);
}

/* Información adicional */
.info-text {
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.6;
    margin-top: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.info-text strong {
    color: var(--primary);
}

/* Footer */
.login-footer {
    position: fixed;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 10;
}

.footer-text {
    color: var(--text-secondary);
    font-size: 12px;
    opacity: 0.6;
}

.footer-link {
    color: var(--primary);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-link:hover {
    opacity: 0.8;
}

/* Animación de carga */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: var(--dark);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(196, 255, 0, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    color: var(--text-primary);
    font-size: 14px;
    animation: blink 1.5s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Notificaciones */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 14px;
    z-index: 1000;
    transform: translateX(400px);
    transition: transform 0.3s var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification.show {
    transform: translateX(0);
}

.notification.error {
    border-color: var(--secondary);
    background: rgba(255, 51, 102, 0.1);
}

.notification.success {
    border-color: var(--primary);
    background: rgba(196, 255, 0, 0.1);
}

.notification.info {
    border-color: var(--accent);
    background: rgba(0, 255, 204, 0.1);
}

/* Animación de ondas */
.wave-animation {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    overflow: hidden;
    opacity: 0.3;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    animation: wave-move 10s linear infinite;
}

@keyframes wave-move {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* Responsive */
@media (max-width: 480px) {
    .login-card {
        padding: 40px 25px;
    }

    .admin-title {
        font-size: 26px;
    }

    .admin-logo {
        width: 80px;
        height: 80px;
    }

    .security-badges {
        gap: 20px;
    }

    .security-badge {
        font-size: 10px;
    }

    .security-icon {
        font-size: 20px;
    }
}

/* Animación de entrada escalonada */
.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.admin-logo { animation-delay: 0.2s; }
.admin-title { animation-delay: 0.3s; }
.admin-subtitle { animation-delay: 0.4s; }
.admin-description { animation-delay: 0.5s; }
.google-login-btn { animation-delay: 0.6s; }
.security-section { animation-delay: 0.7s; }