/* ============================================================
   BÚNKER - Estilos de Login
   ============================================================ */

.login-body {
    display: flex;
    align-items: stretch;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
}

/* ============================================================
   PARTÍCULAS
   ============================================================ */
.particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--accent-green);
    border-radius: 50%;
    opacity: 0;
    animation: float-up linear infinite;
}

@keyframes float-up {
    0%   { transform: translateY(100vh) translateX(0); opacity: 0; }
    10%  { opacity: 0.6; }
    90%  { opacity: 0.3; }
    100% { transform: translateY(-10vh) translateX(var(--drift, 0px)); opacity: 0; }
}

/* ============================================================
   LAYOUT SPLIT
   ============================================================ */
.login-wrapper {
    display: flex;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* Panel izquierdo */
.login-side {
    flex: 0 0 45%;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, #0a0a18 100%);
    border-right: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

/* Línea decorativa animada */
.login-side::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    right: -1px;
    width: 2px;
    background: linear-gradient(
        180deg,
        transparent 0%,
        var(--accent-green) 30%,
        var(--accent-green) 70%,
        transparent 100%
    );
    opacity: 0.4;
    animation: scan 4s ease-in-out infinite alternate;
}

@keyframes scan {
    0%   { transform: scaleY(0.3); transform-origin: top; }
    100% { transform: scaleY(1); transform-origin: bottom; }
}

.side-content {
    max-width: 300px;
    width: 100%;
}

.side-logo {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 48px;
}

.side-logo .logo-icon {
    font-size: 3rem;
    filter: drop-shadow(0 0 12px rgba(0, 255, 136, 0.8));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-6px); }
}

.bunker-logo-text {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent-green);
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.6);
    letter-spacing: 0.2em;
}

.bunker-tagline {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 0.2em;
}

/* Stats de seguridad */
.side-stats {
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Terminal decorativa */
.side-terminal {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    font-size: 0.8rem;
    line-height: 1.8;
}

.blink {
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* Panel derecho */
.login-form-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

/* Card de login */
.login-card {
    width: 100%;
    max-width: 420px;
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.lock-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    display: block;
    filter: drop-shadow(0 0 10px rgba(0, 255, 136, 0.5));
}

.login-header h1 {
    font-size: 1.1rem;
    color: var(--accent-green);
    letter-spacing: 0.2em;
    margin-bottom: 6px;
}

.login-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Prefijo $ en input */
.input-prefix {
    position: absolute;
    left: 14px;
    color: var(--accent-green);
    font-family: var(--font-mono);
    font-size: 1rem;
    pointer-events: none;
    z-index: 1;
}

.form-control-prefix {
    padding-left: 28px !important;
}

/* Meta info bajo el formulario */
.login-meta {
    margin-bottom: 20px;
}

.security-note {
    font-size: 0.72rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Footer del card */
.login-footer {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 0.7rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .login-wrapper {
        flex-direction: column;
        min-height: 100vh;
    }
    .login-side { display: none; }
    .login-form-side {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 24px 16px;
        min-height: 100vh;
    }
    .login-card {
        width: 100%;
        max-width: 420px;
    }
}

@media (max-width: 480px) {
    .login-form-side { padding: 16px 12px; }
    .login-title { font-size: 1rem; }
    .login-subtitle { font-size: 0.72rem; }
    footer span { font-size: 0.62rem !important; }
}
