/* ===== LOGIN.CSS - ESTILOS ESPECÍFICOS PARA PÁGINA DE LOGIN ===== */
@import url('./theme.css');

/* ===== VARIABLES ESPECÍFICAS DEL LOGIN ===== */
:root {
    --tournament-red: #dc2626;
    --champion-gold: #fbbf24;
    --battle-blue: #2563eb;
    --tournament-gradient: linear-gradient(135deg, #0b1426 0%, #1a2332 30%, #dc2626 70%, #0f1419 100%);
}

/* ===== FONDO DEL TORNEO ===== */
body {
    background: var(--tournament-gradient);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
}

/* Overlay decorativo */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(220, 38, 38, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(212, 175, 55, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(196, 30, 58, 0.08) 0%, transparent 60%);
    animation: tournamentPulse 12s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

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

/* ===== CONTAINER PRINCIPAL DEL LOGIN ===== */
.login-container {
    background: rgba(26, 35, 50, 0.95);
    backdrop-filter: blur(25px);
    border: 2px solid var(--border-color);
    border-radius: 25px;
    padding: 3rem;
    width: 100%;
    max-width: 650px;
    min-width: 400px;
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(220, 38, 38, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: slideInUp 0.8s ease-out;
    position: relative;
    overflow: hidden;
    z-index: 10;
}

/* Borde superior brillante del container */
.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--tournament-red), 
        var(--champion-gold), 
        var(--tournament-red), 
        transparent
    );
    animation: championGlow 3s ease-in-out infinite;
}

@keyframes championGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(220, 38, 38, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(251, 191, 36, 0.6);
    }
}

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

/* ===== HEADER DEL LOGIN ===== */
.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-logo {
    height: 100px;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.4));
    transition: all 0.3s ease;
}

.login-logo:hover {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 25px rgba(251, 191, 36, 0.7));
}

.login-header h1 {
    color: var(--text-primary);
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    font-family: var(--font-title);
    text-shadow: 0 2px 10px rgba(220, 38, 38, 0.5);
    background: linear-gradient(45deg, var(--champion-gold), var(--tournament-red), var(--champion-gold));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titlePulse 2s ease-in-out infinite;
}

@keyframes titlePulse {
    0%, 100% { 
        text-shadow: 0 2px 10px rgba(220, 38, 38, 0.5); 
    }
    50% { 
        text-shadow: 0 4px 20px rgba(251, 191, 36, 0.8); 
    }
}

.battle-location {
    color: var(--tournament-red);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(220, 38, 38, 0.6);
    animation: battleGlow 2s ease-in-out infinite;
    margin-top: 0.5rem;
}

@keyframes battleGlow {
    0%, 100% { 
        opacity: 0.8; 
    }
    50% { 
        opacity: 1; 
        text-shadow: 0 0 15px rgba(220, 38, 38, 0.9); 
    }
}

/* ===== BODY DEL LOGIN ===== */
.login-body {
    position: relative;
}

/* ===== FORMULARIO ESPECÍFICO DEL LOGIN ===== */
.form-control {
    background: rgba(15, 20, 25, 0.9);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    color: var(--text-primary);
    font-size: 1.1rem;
    padding: 1.2rem 1.5rem;
    transition: all 0.3s ease;
    font-family: var(--font-main);
    width: 100%;
    min-height: 60px;
}

.form-control:focus {
    background: rgba(15, 20, 25, 0.95);
    border-color: var(--champion-gold);
    box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.2);
    color: var(--text-primary);
    outline: none;
}

.form-control::placeholder {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* ===== CHECKBOX Y OPCIONES ===== */
.form-check-input:checked {
    background-color: var(--champion-gold);
    border-color: var(--champion-gold);
}

.forgot-password {
    color: var(--battle-blue);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.forgot-password:hover {
    color: var(--champion-gold);
    text-decoration: underline;
}

/* ===== BOTÓN PRINCIPAL DEL LOGIN ===== */
.btn-martial {
    background: linear-gradient(135deg, var(--tournament-red) 0%, var(--champion-gold) 100%);
    border: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.2rem;
    padding: 1.3rem 2rem;
    border-radius: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-family: var(--font-title);
    width: 100%;
    min-height: 65px;
}

.btn-martial:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(220, 38, 38, 0.4);
    color: var(--text-primary);
}

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

.btn-martial:hover::before {
    left: 100%;
}

/* ===== ALERTAS ESPECÍFICAS DEL LOGIN ===== */
.alert-danger {
    background: rgba(220, 38, 38, 0.15);
    border: 1px solid rgba(220, 38, 38, 0.4);
    color: #ff6b6b;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

/* ===== INFORMACIÓN DEL SISTEMA ===== */
.system-info {
    color: var(--text-secondary);
    font-size: 0.9rem;
    opacity: 0.8;
    text-align: center;
    margin-top: 1.5rem;
}

/* ===== ICONOS CON EFECTOS ===== */
.input-icon {
    color: var(--champion-gold) !important;
    font-size: 1.2rem;
}

/* ===== RESPONSIVE ESPECÍFICO DEL LOGIN ===== */
@media (max-width: 992px) {
    .login-container {
        max-width: 580px;
        padding: 2.5rem;
    }
}

@media (max-width: 768px) {
    .login-container {
        max-width: 100%;
        min-width: 300px;
        padding: 2rem;
        margin: 15px;
    }
    
    .login-logo {
        height: 80px;
    }
    
    .login-header h1 {
        font-size: 2rem;
    }

    .form-control {
        padding: 1rem 1.2rem;
        font-size: 1rem;
        min-height: 55px;
    }

    .btn-martial {
        padding: 1.1rem 1.5rem;
        font-size: 1.1rem;
        min-height: 60px;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 1.5rem;
        min-width: 280px;
    }

    .login-header h1 {
        font-size: 1.8rem;
    }

    .martial-subtitle {
        font-size: 1rem;
    }

    .battle-location {
        font-size: 0.9rem;
    }
}

/* ===== EFECTOS ESPECIALES DEL LOGIN ===== */
.login-container:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 35px 70px rgba(0, 0, 0, 0.7),
        0 0 50px rgba(220, 38, 38, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Efectos adicionales para el título */
.login-header h1:hover {
    animation: titlePulse 1s ease-in-out;
}

/* Efecto de enfoque en el container cuando se está escribiendo */
.login-container:focus-within {
    border-color: var(--champion-gold);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.6),
        0 0 60px rgba(251, 191, 36, 0.3),login.css,particles,css,theme.css
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}