/* ===== SAMPDOJO ZRP - CSS MODERNO GAMING ===== */

/* Importar fuentes gaming modernas */
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@300;400;500;600;700&family=Orbitron:wght@400;700;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* Variables CSS para fácil personalización */
:root {
    /* Colores principales gaming */
    --primary-neon: #00ff88;
    --primary-blue: #0099ff;
    --primary-purple: #8b5cf6;
    --accent-orange: #ff8c00;
    --accent-red: #ff4757;
    
    /* Colores de fondo */
    --bg-dark: #0a0f1c;
    --bg-darker: #060b14;
    --bg-card: #1a1f2e;
    --bg-card-hover: #242b3d;
    
    /* Colores de texto */
    --text-primary: #ffffff;
    --text-secondary: #b8c5d6;
    --text-muted: #7c8ba1;
    
    /* Efectos y sombras */
    --shadow-neon: 0 0 20px rgba(0, 255, 136, 0.3);
    --shadow-blue: 0 0 20px rgba(0, 153, 255, 0.3);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.3);
    
    /* Bordes y radios */
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --border-glow: 1px solid rgba(0, 255, 136, 0.3);
}

/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body con gradiente gaming */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 30%, #0f1419 70%, var(--bg-darker) 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding: 20px;
    overflow-x: hidden;
    position: relative;
}

/* Efecto de cuadrícula sutil en el fondo */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 136, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 136, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

/* Partículas flotantes discretas */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(1px 1px at 25% 25%, var(--primary-neon), transparent),
        radial-gradient(1px 1px at 75% 75%, var(--primary-blue), transparent),
        radial-gradient(1px 1px at 25% 75%, var(--primary-purple), transparent),
        radial-gradient(1px 1px at 75% 25%, var(--accent-orange), transparent);
    background-size: 300px 300px;
    animation: floatParticles 15s linear infinite;
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
}

@keyframes floatParticles {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(10px, -10px); }
    50% { transform: translate(-5px, -20px); }
    75% { transform: translate(-10px, 5px); }
}

/* Contenedor principal */
.auth-container {
    max-width: 440px;
    margin: 30px auto;
    background: rgba(26, 31, 46, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--border-radius-lg);
    border: var(--border-glow);
    box-shadow: var(--shadow-card);
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: all 0.3s ease;
}

.auth-container:hover {
    transform: translateY(-5px);
    box-shadow: 
        var(--shadow-card),
        var(--shadow-neon);
    border-color: rgba(0, 255, 136, 0.5);
}

/* Información del servidor - MEJORADA */
.server-info {
    text-align: center;
    padding: 30px 25px;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1) 0%, rgba(0, 153, 255, 0.1) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

/* Título del servidor - SIN EFECTOS RAROS */
.server-title {
    font-family: 'Orbitron', monospace;
    font-size: 28px;
    font-weight: 900;
    color: var(--primary-neon);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(0, 255, 136, 0.5);
    /* SIN ANIMACIONES MOLESTAS */
}

.server-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* IP del servidor */
.server-ip {
    background: rgba(0, 0, 0, 0.4);
    padding: 15px 20px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 255, 136, 0.3);
    margin: 15px 0;
    position: relative;
    transition: all 0.3s ease;
}

.server-ip:hover {
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(0, 255, 136, 0.5);
    transform: scale(1.02);
}

.server-ip .ip-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.server-ip .ip-address {
    font-family: 'Rajdhani', monospace;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-neon);
    cursor: pointer;
    user-select: all;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.copy-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 255, 136, 0.2);
    border: 1px solid rgba(0, 255, 136, 0.4);
    border-radius: 6px;
    padding: 8px 12px;
    color: var(--primary-neon);
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.copy-btn:hover {
    background: rgba(0, 255, 136, 0.3);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
}

/* Sistema de pestañas moderno */
.tab-buttons {
    display: flex;
    margin: 0;
    background: rgba(0, 0, 0, 0.3);
    position: relative;
}

.tab-button {
    flex: 1;
    padding: 18px 20px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    border-bottom: 3px solid transparent;
}

.tab-button:first-child {
    border-top-left-radius: 0;
}

.tab-button:last-child {
    border-top-right-radius: 0;
}

.tab-button.active {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), rgba(0, 153, 255, 0.1));
    color: var(--primary-neon);
    border-bottom-color: var(--primary-neon);
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.tab-button:hover:not(.active) {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

/* Contenido de las pestañas */
.tab-content {
    display: none;
    padding: 30px 25px;
}

.tab-content.active {
    display: block;
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Título del formulario */
.form-title {
    text-align: center;
    margin-bottom: 25px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Labels */
label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Grupo de inputs */
.input-group {
    position: relative;
    margin-bottom: 20px;
}

/* Inputs modernos */
.input-group input,
.input-group select {
    width: 100%;
    padding: 16px 50px 16px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    font-size: 16px; /* Importante para móviles */
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    outline: none;
}

.input-group input:focus,
.input-group select:focus {
    border-color: var(--primary-neon);
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1);
    transform: translateY(-1px);
}

.input-group input::placeholder {
    color: var(--text-muted);
    font-size: 14px;
}

/* Iconos en inputs */
.input-group i {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 16px;
    transition: all 0.3s ease;
    pointer-events: none;
}

.input-group input:focus + i,
.input-group select:focus + i {
    color: var(--primary-neon);
    transform: translateY(-50%) scale(1.1);
}

/* Select específico */
.input-group select {
    appearance: none;
    cursor: pointer;
}

.input-group select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.input-group select option {
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 10px;
}

/* Botón principal */
.submit-btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: var(--border-radius);
    background: linear-gradient(135deg, var(--primary-neon) 0%, var(--primary-blue) 100%);
    color: white;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
    box-shadow: var(--shadow-neon);
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 0 25px rgba(0, 255, 136, 0.4),
        0 10px 30px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #00ff88 0%, #00ccff 100%);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Efecto de brillo en botón */
.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.submit-btn:hover::before {
    left: 100%;
}

/* Mensajes de error y éxito */
.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ff6b6b;
    padding: 12px 16px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

.success-message {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
    padding: 12px 16px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

/* Footer Discord moderno */
.footer-discord {
    background: linear-gradient(135deg, rgba(114, 137, 218, 0.2) 0%, rgba(88, 101, 242, 0.2) 100%);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(114, 137, 218, 0.3);
    padding: 30px;
    margin: 30px auto;
    max-width: 600px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    color: white;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.footer-discord:hover {
    transform: translateY(-3px);
    border-color: rgba(114, 137, 218, 0.5);
    box-shadow: 
        var(--shadow-card),
        0 0 25px rgba(114, 137, 218, 0.3);
}

.footer-discord h3 {
    margin-bottom: 15px;
    font-size: 24px;
    font-weight: 700;
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #7289da;
}

.footer-discord p {
    margin-bottom: 25px;
    opacity: 0.9;
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-discord-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #5865f2 0%, #7289da 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 15px rgba(88, 101, 242, 0.3);
}

.footer-discord-button:hover {
    background: linear-gradient(135deg, #4752c4 0%, #5b6ecd 100%);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.4);
}

.footer-discord-button i {
    font-size: 18px;
}

/* Footer */
footer {
    text-align: center;
    padding: 25px 20px;
    color: var(--text-muted);
    margin-top: 30px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer p {
    font-size: 14px;
    line-height: 1.5;
}

footer a {
    color: var(--primary-neon);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-blue);
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

/* Notificación de copiado */
.copied-notification {
    position: fixed;
    top: 25px;
    right: 25px;
    background: linear-gradient(135deg, var(--primary-neon) 0%, var(--primary-blue) 100%);
    color: white;
    padding: 12px 20px;
    border-radius: var(--border-radius);
    font-weight: 600;
    z-index: 1000;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.4s ease;
    box-shadow: var(--shadow-neon);
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.copied-notification.show {
    opacity: 1;
    transform: translateX(0);
}

/* ===== RESPONSIVE DESIGN ===== */

/* Móviles pequeños */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .auth-container {
        margin: 15px auto;
        max-width: 95%;
    }
    
    .server-info {
        padding: 20px 15px;
    }
    
    .server-title {
        font-size: 24px;
    }
    
    .server-ip .ip-address {
        font-size: 16px;
    }
    
    .tab-content {
        padding: 20px 15px;
    }
    
    .input-group input,
    .input-group select {
        padding: 14px 45px 14px 14px;
    }
    
    .submit-btn {
        padding: 14px;
        font-size: 14px;
    }
    
    .footer-discord {
        margin: 20px 10px;
        padding: 20px 15px;
    }
    
    .footer-discord h3 {
        font-size: 20px;
    }
    
    .footer-discord-button {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .copied-notification {
        top: 15px;
        right: 15px;
        padding: 10px 15px;
        font-size: 13px;
    }
}

/* Tablets */
@media (min-width: 481px) and (max-width: 768px) {
    .auth-container {
        max-width: 500px;
    }
    
    .footer-discord {
        margin: 30px 20px;
    }
}

/* Landscape móviles */
@media (max-height: 500px) and (orientation: landscape) {
    body {
        padding: 10px;
    }
    
    .auth-container {
        margin: 10px auto;
    }
    
    .server-info {
        padding: 15px;
    }
    
    .server-title {
        font-size: 20px;
        margin-bottom: 5px;
    }
    
    .tab-content {
        padding: 15px;
    }
    
    .input-group {
        margin-bottom: 15px;
    }
    
    .footer-discord {
        margin: 15px 10px;
        padding: 15px;
    }
}

/* Optimización de rendimiento */
@media (max-width: 768px) {
    /* Reducir animaciones para mejor rendimiento */
    body::after {
        animation-duration: 20s;
        opacity: 0.2;
    }
    
    .auth-container:hover {
        transform: none;
    }
    
    .footer-discord:hover {
        transform: translateY(-1px);
    }
}

/* Accesibilidad - reducir movimiento */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    body::after {
        animation: none;
    }
}