/* =========================================================================
   BandCore · Inicio de sesión (basado en "Minimal Music" de Colorlib)
   Solo lo carga login.html (body.ingreso).
   ========================================================================= */
@font-face { font-family: 'Sigmar'; src: url('../fonts/Sigmar-Regular.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Gentium Book Plus'; src: url('../fonts/GentiumBookPlus-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Gentium Book Plus'; src: url('../fonts/GentiumBookPlus-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

body.ingreso {
    --bc-marino: #1F2A44; --bc-verde: #183630; --bc-dorado: #C6A75E; --bc-crema: #E8DCC8;
    --bc-tinta: #2C2D2D; --bc-suave: rgba(44,45,45,.68);
    margin: 0; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 20px; box-sizing: border-box; line-height: 1.6;
    font-family: 'Gentium Book Plus', Georgia, serif; color: var(--bc-tinta);
    background: linear-gradient(135deg, #141c30 0%, var(--bc-marino) 45%, var(--bc-verde) 100%);
}
.ingreso *, .ingreso *::before, .ingreso *::after { box-sizing: border-box; }

.ing-volver { position: absolute; top: 1.25rem; left: 1.25rem; display: inline-flex; align-items: center; gap: .4rem;
              color: rgba(232,220,200,.8); text-decoration: none; font-size: .95rem; }
.ing-volver:hover { color: #fff; }
.ing-volver svg { width: 1rem; height: 1rem; }

.ing-contenedor { width: 100%; max-width: 410px; }
.ing-tarjeta { position: relative; overflow: hidden; background: #fff; border-radius: 16px; padding: 48px 40px 32px;
               box-shadow: 0 24px 48px -12px rgba(0,0,0,.45); }
.ing-tarjeta::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
                       background: linear-gradient(90deg, var(--bc-verde), var(--bc-dorado)); }

.ing-cabeza { text-align: center; margin-bottom: 30px; }
.ing-logo { display: inline-flex; margin-bottom: 18px; }
.ing-logo img { width: 40px; height: auto; }
.ing-cabeza h1 { font-family: 'Sigmar', Georgia, serif; font-weight: 400; color: var(--bc-marino);
                 font-size: 1.85rem; line-height: 1.15; margin: 0 0 6px; }
.ing-cabeza p { margin: 0; color: var(--bc-suave); font-size: 1.02rem; }

.ing-campo { margin-bottom: 20px; }
.ing-campo label { display: block; font-size: .95rem; font-weight: 700; color: var(--bc-marino); margin-bottom: 7px; }
.ing-campo input {
    width: 100%; background: #f6f1e8; border: 2px solid transparent; border-radius: 12px; padding: 13px 16px;
    font: inherit; font-size: 1rem; color: var(--bc-tinta); outline: none; transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.ing-campo input:focus { background: #fff; border-color: var(--bc-verde); box-shadow: 0 0 0 3px rgba(24,54,48,.12); }
.ing-clave { position: relative; }
.ing-clave input { padding-right: 52px; }
.ing-ver { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: 0; cursor: pointer;
           color: var(--bc-suave); padding: 6px; border-radius: 8px; display: inline-flex; }
.ing-ver:hover { color: var(--bc-marino); }
.ing-ver svg { width: 20px; height: 20px; }
.ing-ver .ojo-cerrado, .ing-ver[aria-pressed="true"] .ojo-abierto { display: none; }
.ing-ver[aria-pressed="true"] .ojo-cerrado { display: block; }

.ing-opciones { display: flex; justify-content: flex-end; margin: -4px 0 26px; }
.ing-olvido { color: var(--bc-verde); font-size: .95rem; font-weight: 700; text-decoration: none; }
.ing-olvido:hover { text-decoration: underline; text-underline-offset: 3px; }

.ing-boton {
    width: 100%; min-height: 50px; display: flex; align-items: center; justify-content: center; position: relative;
    border: 0; border-radius: 12px; cursor: pointer; font: inherit; font-size: 1.05rem; font-weight: 700; color: #fff;
    background: linear-gradient(to top, #18213a, #2a3657); transition: box-shadow .2s, transform .2s;
}
.ing-boton:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -8px rgba(31,42,68,.7), inset 0 -3px 0 var(--bc-dorado); }
.ing-boton:active { transform: none; }
.ing-boton .ing-puntos { position: absolute; display: flex; gap: 5px; opacity: 0; }
.ing-boton .ing-puntos i { width: 6px; height: 6px; border-radius: 50%; background: var(--bc-dorado); animation: ing-pulso 1.4s ease-in-out infinite both; }
.ing-boton .ing-puntos i:nth-child(2) { animation-delay: .16s; }
.ing-boton .ing-puntos i:nth-child(3) { animation-delay: .32s; }
.ing-boton.cargando { pointer-events: none; }
.ing-boton.cargando .ing-texto { opacity: 0; }
.ing-boton.cargando .ing-puntos { opacity: 1; }
@keyframes ing-pulso { 0%, 80%, 100% { transform: scale(.8); opacity: .5; } 40% { transform: scale(1); opacity: 1; } }

.ing-separador { text-align: center; margin: 26px 0 16px; position: relative; }
.ing-separador::before { content: ""; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: #ece5d8; }
.ing-separador span { position: relative; background: #fff; padding: 0 14px; color: var(--bc-suave); font-size: .9rem; }
.ing-pie { text-align: center; margin: 0 0 .5rem; color: var(--bc-suave); font-size: .97rem; }
.ing-pie a { color: var(--bc-marino); font-weight: 700; }

.ing-lema { margin-top: 22px; text-align: center; color: rgba(232,220,200,.6); font-style: italic; font-size: .95rem; }

/* Avisos (error, sesión cerrada, correo cambiado) */
.toast-login {
    position: fixed; top: 1rem; left: 50%; transform: translate(-50%, -150%); z-index: 9999; max-width: min(92vw, 440px);
    padding: .85rem 1.1rem; border-radius: 12px; color: #fff; font-size: .98rem; display: flex; gap: .6rem; align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,.3); transition: transform .35s ease, opacity .35s ease; opacity: 0;
}
.toast-login.visible { transform: translate(-50%, 0); opacity: 1; }
.toast-login.error { background: #8f2d22; }
.toast-login.ok { background: var(--bc-verde); border: 1px solid rgba(198,167,94,.5); }
.toast-login button { background: none; border: 0; color: inherit; font-size: 1.3rem; cursor: pointer; margin-left: auto; }
@media (prefers-reduced-motion: reduce) { .toast-login, .ing-boton { transition: none; } .ing-puntos i { animation: none; } }

@media (max-width: 480px) {
    .ing-tarjeta { padding: 40px 22px 26px; }
    .ing-cabeza h1 { font-size: 1.55rem; }
    .ing-volver { position: static; align-self: flex-start; margin-bottom: 1rem; }
}