/* ============================================================
   Pantalla de ingreso — BandFest
   Misma estructura que el acceso de SAAC, con la paleta
   institucional de BandFest: azul de fondo, naranja en la acción.
   ============================================================ */

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

body {
    font-family: 'DM Sans', 'Segoe UI', sans-serif;
    min-height: 100vh;
    background: linear-gradient(160deg, #06264A 0%, #0B4F9C 55%, #1565C0 100%);
}

/* ---------- Decoraciones de fondo ---------- */
.lw-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.lw-bg::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    border: 90px solid rgba(255, 255, 255, 0.04);
    bottom: -160px;
    right: -160px;
}

.lw-bg::after {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    border: 55px solid rgba(232, 118, 26, 0.09);
    top: -80px;
    left: -80px;
}

.lw-bg-line {
    position: absolute;
    width: 1px;
    height: 80%;
    background: rgba(255, 255, 255, 0.05);
    top: 10%;
    left: 62%;
    transform: rotate(12deg);
}

/* ---------- Wrapper centrado ---------- */
.lw {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem;
}

/* ---------- Logo + nombre ---------- */
.lw-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 2.5rem;
    animation: fadeUp 0.4s ease both;
}

.lw-header img {
    /* El sello es azul marino sobre fondo blanco, así que invertirlo lo
       dejaba como un disco blanco liso. Se muestra a color, con un aro
       blanco que lo despega del azul del fondo. */
    width: 76px;
    height: auto;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25), 0 6px 18px rgba(0, 0, 0, 0.22);
}

.lw-brand-name {
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.1;
}

.lw-brand-sub {
    color: rgba(255, 255, 255, 0.52);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 0.2rem;
}

/* ---------- Tarjeta ---------- */
.lw-card {
    width: 100%;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.97);
    border-radius: 1rem;
    padding: 2.25rem 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    /* El filo naranja es lo único que distingue la tarjeta de la de SAAC. */
    border-top: 4px solid #E8761A;
    animation: fadeUp 0.45s ease 0.08s both;
}

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

.lw-heading { margin-bottom: 1.75rem; }

.lw-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #0b1829;
    margin-bottom: 0.3rem;
    letter-spacing: -0.01em;
}

.lw-subtitle {
    font-size: 0.85rem;
    color: #6b7a8d;
    line-height: 1.5;
}

/* ---------- Campos ---------- */
.lw-field { margin-bottom: 1.1rem; }

.lw-field label {
    display: block;
    font-size: 0.76rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.38rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.lw-input-wrap { position: relative; }

.lw-input-wrap input {
    width: 100%;
    padding: 0.7rem 2.5rem 0.7rem 2.5rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 0.88rem;
    color: #0b1829;
    background: #fafbfc;
    outline: none;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.lw-input-wrap input:focus {
    border-color: #E8761A;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(232, 118, 26, 0.18);
}

.lw-input-wrap input.es-error {
    border-color: #C0392B;
    background: #FDF3F2;
}

.lw-icon {
    position: absolute;
    left: 0.82rem;
    top: 50%;
    transform: translateY(-50%);
    color: #b0b8c4;
    font-size: 0.78rem;
    pointer-events: none;
    transition: color 0.2s;
}

.lw-input-wrap:focus-within .lw-icon { color: #E8761A; }

.lw-toggle {
    position: absolute;
    right: 0.82rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #b0b8c4;
    font-size: 0.78rem;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.lw-toggle:hover { color: #E8761A; }

/* ---------- Recordarme ---------- */
.lw-options { margin-bottom: 1.5rem; }

.lw-remember {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    cursor: pointer;
    font-size: 0.83rem;
    color: #6b7a8d;
    user-select: none;
}

.lw-remember input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: #E8761A;
    cursor: pointer;
}

/* ---------- Botón ---------- */
.lw-submit {
    width: 100%;
    padding: 0.78rem 1.25rem;
    background: #E8761A;
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    letter-spacing: 0.01em;
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}

.lw-submit:hover {
    background: #C75F0D;
    box-shadow: 0 4px 18px rgba(199, 95, 13, 0.4);
    transform: translateY(-1px);
}

.lw-submit:active { transform: translateY(0); }

/* ---------- Pie ---------- */
.lw-footer {
    margin-top: 2rem;
    text-align: center;
    animation: fadeUp 0.45s ease 0.15s both;
}

.lw-footer-sep {
    width: 32px;
    height: 2px;
    background: rgba(232, 118, 26, 0.6);
    border-radius: 2px;
    margin: 0 auto 0.65rem;
}

.lw-footer-text {
    color: rgba(255, 255, 255, 0.38);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    line-height: 1.6;
}

/* ---------- Mensajes ---------- */
.lw-alert {
    display: flex;
    gap: 0.6rem;
    margin-top: 1.1rem;
    padding: 0.7rem 0.9rem;
    border-radius: 0.5rem;
    font-size: 0.83rem;
    line-height: 1.45;
}

.lw-alert > i { margin-top: 2px; flex-shrink: 0; }
.lw-alert p { margin-bottom: 0.2rem; }
.lw-alert p:last-child { margin-bottom: 0; }

.lw-alert.peligro {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.lw-alert.exito {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

@media (max-width: 420px) {
    .lw-header img { width: 60px; }
    .lw-brand-name { font-size: 1.6rem; }
    .lw-card { padding: 1.75rem 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
    .lw-header, .lw-card, .lw-footer { animation: none; }
    .lw-submit:hover { transform: none; }
}
