/* ============================================
   BLOCKLOT - LOGIN DARK PREMIUM
   ============================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    background: #5a0000;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

/* Fondo animado con particulas rojas */
.background-animation {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    opacity: 0.06;
    border-radius: 50%;
}

.shape-1 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, #DC2626, transparent);
    top: -200px; left: -200px;
    animation: pulse-glow 8s infinite ease-in-out;
}

.shape-2 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, #991B1B, transparent);
    bottom: -150px; right: -150px;
    animation: pulse-glow 10s infinite ease-in-out reverse;
}

.shape-3 {
    width: 200px; height: 200px;
    background: radial-gradient(circle, #EF4444, transparent);
    top: 40%; right: 5%;
    animation: pulse-glow 12s infinite ease-in-out;
}

.shape-4 {
    width: 350px; height: 350px;
    background: radial-gradient(circle, #7F1D1D, transparent);
    bottom: 15%; left: 5%;
    animation: pulse-glow 14s infinite ease-in-out reverse;
}

@keyframes pulse-glow {
    0%, 100% { transform: scale(1); opacity: 0.04; }
    50% { transform: scale(1.3); opacity: 0.08; }
}

/* Contenedor */
.login-container {
    width: 100%;
    max-width: 420px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Caja del login - glassmorphism oscuro */
.login-box {
    background: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 48px 36px;
    width: 100%;
    border: 1px solid rgba(220, 38, 38, 0.15);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6), 0 0 100px rgba(139, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.login-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #DC2626, #FF4444, #DC2626, transparent);
}

/* Header del login */
.login-header { text-align: center; margin-bottom: 36px; }

.logo-circle {
    width: 72px; height: 72px;
    margin: 0 auto 18px;
    background: linear-gradient(135deg, #DC2626, #7F1D1D);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(220, 38, 38, 0.3);
    animation: logo-pulse 3s infinite ease-in-out;
    transform: rotate(45deg);
}

.logo-circle i {
    font-size: 30px;
    color: #fff;
    transform: rotate(-45deg);
}

@keyframes logo-pulse {
    0%, 100% { box-shadow: 0 8px 30px rgba(220, 38, 38, 0.3); }
    50% { box-shadow: 0 8px 50px rgba(220, 38, 38, 0.5), 0 0 20px rgba(220, 38, 38, 0.2); }
}

.login-title {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.login-subtitle { font-size: 14px; color: rgba(255, 255, 255, 0.4); font-weight: 400; letter-spacing: 0.5px; }

/* Formulario */
.form-group { margin-bottom: 20px; }

.input-wrapper { position: relative; display: flex; align-items: center; }

.input-icon {
    position: absolute;
    left: 16px;
    color: rgba(220, 38, 38, 0.5);
    font-size: 16px;
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-input::placeholder { color: rgba(255, 255, 255, 0.25); }

.form-input:focus {
    border-color: rgba(220, 38, 38, 0.5);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-input:focus + .toggle-password,
.input-wrapper:focus-within .input-icon { color: #DC2626; }

.toggle-password {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    font-size: 16px;
    padding: 8px;
    transition: all 0.3s ease;
    z-index: 2;
}

.toggle-password:hover { color: #DC2626; }

/* Boton de entrar */
.btn-entrar {
    width: 100%;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #DC2626, #7F1D1D);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 6px 25px rgba(220, 38, 38, 0.3);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.btn-entrar::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.6s ease;
}

.btn-entrar:hover::before { left: 100%; }
.btn-entrar:hover { transform: translateY(-2px); box-shadow: 0 10px 35px rgba(220, 38, 38, 0.45); }
.btn-entrar:active { transform: translateY(0); }
.btn-entrar i { transition: transform 0.3s ease; }
.btn-entrar:hover i { transform: translateX(4px); }

/* Footer */
.login-footer { margin-top: 28px; text-align: center; }
.footer-text { font-size: 12px; color: rgba(255, 255, 255, 0.25); display: flex; align-items: center; justify-content: center; gap: 8px; }
.footer-text i { color: #DC2626; }

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

/* Responsive */
@media (max-width: 480px) {
    body { padding: 15px; }
    .login-box { padding: 36px 24px; border-radius: 16px; }
    .logo-circle { width: 60px; height: 60px; }
    .logo-circle i { font-size: 26px; }
    .login-title { font-size: 24px; }
    .login-subtitle { font-size: 13px; }
    .form-input { padding: 12px 14px 12px 44px; font-size: 14px; }
    .input-icon { left: 14px; font-size: 15px; }
    .btn-entrar { padding: 13px 20px; font-size: 14px; }
}

@media (min-width: 481px) and (max-width: 768px) {
    .login-box { padding: 44px 32px; }
}

/* Alertas */
.alert-error, .alert-success {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    animation: slideInDown 0.4s ease-out;
}

.alert-error { background: rgba(220, 38, 38, 0.12); border: 1px solid rgba(220, 38, 38, 0.3); color: #f87171; }
.alert-error i { color: #f87171; font-size: 16px; }
.alert-success { background: rgba(34, 197, 94, 0.12); border: 1px solid rgba(34, 197, 94, 0.3); color: #4ade80; }
.alert-success i { color: #4ade80; font-size: 16px; }

@keyframes slideInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.input-error { border-color: #ef4444 !important; background: rgba(239, 68, 68, 0.08) !important; }
.input-error:focus { border-color: #dc2626 !important; box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15) !important; }

.form-input:focus, .btn-entrar:focus, .toggle-password:focus { outline: 2px solid #DC2626; outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}