/* ==========================================================================
   login.css — Estilos mínimos para páginas de login (Viczza / Trizenit / Helados)
   Sin dependencia de npm: solo Tailwind CDN en el HTML, este archivo se usa
   para forzar el fondo animado, glass card y el canvas de partículas.
   ========================================================================== */

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #020617;
    color: #e2e8f0;
}

/* Fondo animado con gradientes radiales (reemplaza bg-animate de Tailwind) */
.bg-animate {
    background:
        radial-gradient(circle at top left,    rgba(139, 92, 246, 0.15), transparent 60%),
        radial-gradient(circle at bottom right, rgba(16, 185, 129, 0.10), transparent 60%),
        #020617;
}

/* Tarjeta con efecto glass */
.glass-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: float 6s ease-in-out infinite;
    border-radius: 2.5rem;
    padding: 2.5rem;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}

/* Canvas de partículas al fondo */
#particle-canvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
}

.login-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 28rem; /* ~max-w-md */
    margin: 0 auto;
    padding: 1.5rem;
}

/* Inputs con borde iluminado al enfocar */
.glow-input {
    width: 100%;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1rem 1rem;
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.5;
    transition: all 0.2s ease;
    outline: none;
}

.glow-input::placeholder {
    color: #475569;
}

.glow-input:focus {
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.15);
}

/* Wrapper del input con icono a la izquierda */
.input-wrapper {
    position: relative;
}

.input-wrapper .input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1.25rem;
    color: #64748b;
    pointer-events: none;
    transition: color 0.2s ease;
}

.input-wrapper:focus-within .input-icon {
    color: #8b5cf6;
}

.input-wrapper .glow-input {
    padding-left: 3rem;
}

/* Etiqueta */
.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #94a3b8;
    margin-left: 0.25rem;
    margin-bottom: 0.5rem;
}

/* Botón principal con gradiente */
.btn-primary-gradient {
    width: 100%;
    background: linear-gradient(90deg, #8b5cf6 0%, #7c3aed 100%);
    color: #ffffff;
    font-weight: 700;
    padding: 1rem;
    border: none;
    border-radius: 1rem;
    cursor: pointer;
    box-shadow: 0 10px 25px -5px rgba(139, 92, 246, 0.2);
    transition: all 0.2s ease;
    font-size: 1rem;
}

.btn-primary-gradient:hover {
    box-shadow: 0 15px 35px -5px rgba(139, 92, 246, 0.4);
    transform: translateY(-1px);
}

.btn-primary-gradient:active {
    transform: scale(0.98);
}

.btn-primary-gradient:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Variante rosa para helados */
.btn-primary-pink {
    background: linear-gradient(90deg, #ec4899 0%, #f43f5e 100%);
    box-shadow: 0 10px 25px -5px rgba(236, 72, 153, 0.2);
}

.btn-primary-pink:hover {
    box-shadow: 0 15px 35px -5px rgba(236, 72, 153, 0.4);
}

/* Checkbox */
.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 0.25rem;
}

.form-check input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    border-radius: 0.25rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.5);
    accent-color: #8b5cf6;
}

.form-check label {
    font-size: 0.875rem;
    color: #94a3b8;
}

/* Textos auxiliares */
.text-muted {
    color: #64748b;
}

.text-white {
    color: #ffffff;
}

.text-center {
    text-align: center;
}

.text-xs {
    font-size: 0.75rem;
}

.text-sm {
    font-size: 0.875rem;
}

.text-xl {
    font-size: 1.25rem;
}

.font-semibold {
    font-weight: 600;
}

.uppercase {
    text-transform: uppercase;
}

.tracking-widest {
    letter-spacing: 0.1em;
}

.mt-8 {
    margin-top: 2rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.space-y-6 > * + * {
    margin-top: 1.5rem;
}

.space-y-2 > * + * {
    margin-top: 0.5rem;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.flex-1 {
    flex: 1;
}

.min-h-screen {
    min-height: 100vh;
}

.relative {
    position: relative;
}

/* Errores/alertas */
.alert {
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    border: 1px solid;
}

.alert-danger {
    background: rgba(244, 63, 94, 0.1);
    border-color: rgba(244, 63, 94, 0.3);
    color: #fda4af;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}

/* Layout del body del login */
body.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

/* Responsive */
@media (max-width: 480px) {
    .glass-card {
        padding: 1.5rem;
        border-radius: 1.5rem;
    }
}
