/* ============================================================
   LUNOCTUA — Acceso Privado (login)
   Todas las reglas van ancladas a body.login-page para no
   afectar a registro.html, el dashboard ni el sitio público,
   que reutilizan nombres de clase como .registro-box / .btn-dorado.
   Paleta original conservada:
     Azul medianoche  #001a33 / #0a192f / #0D1B2A / #1B263B
     Dorado Lunoctua  #D4AF37 / #C5A059 / #BF9B50 / #B8860B
     Negro profundo   #050505 / #0a0a0a
   ============================================================ */

body.login-page {
    position: relative;
    background: radial-gradient(120% 100% at 0% 0%, #0a192f 0%, #050505 100%);
    overflow: hidden;
    font-family: 'Arial', Helvetica, sans-serif;
}

/* Resplandores de fondo (solo CSS, sin imágenes extra) */
body.login-page::before,
body.login-page::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(10px);
}

body.login-page::before {
    width: 60vmax;
    height: 60vmax;
    top: -22vmax;
    left: -18vmax;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.16) 0%, rgba(212, 175, 55, 0) 65%);
    animation: lpFlotar 14s ease-in-out infinite;
}

body.login-page::after {
    width: 55vmax;
    height: 55vmax;
    bottom: -20vmax;
    right: -16vmax;
    background: radial-gradient(circle, rgba(0, 60, 110, 0.35) 0%, rgba(0, 60, 110, 0) 65%);
    animation: lpFlotar 18s ease-in-out infinite reverse;
}

@keyframes lpFlotar {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(3vmax, 2vmax) scale(1.08); }
}

/* Textura: degradé de fondo + streaks doradas sesgadas + puntos sutiles */
.login-page .lp-textura {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        repeating-linear-gradient(
            transparent, transparent 38px,
            rgba(255, 255, 255, 0.012) 39px, transparent 40px
        ),
        radial-gradient(circle at 1px 1px, rgba(212, 175, 55, 0.15) 1px, transparent 0);
    background-size: auto, 22px 22px;
}

.login-page .lp-textura::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -20%;
    width: 90%;
    height: 140%;
    background: linear-gradient(
        rgba(212, 175, 55, 0.85) 0%,
        rgba(212, 175, 55, 0) 100%
    );
    -webkit-mask: linear-gradient(
        90deg,
        transparent 0%, #000 15%, transparent 32%,
        #000 48%, transparent 62%, #000 76%, transparent 92%
    );
    mask: linear-gradient(
        90deg,
        transparent 0%, #000 15%, transparent 32%,
        #000 48%, transparent 62%, #000 76%, transparent 92%
    );
    transform: skewX(-30deg);
    opacity: 0.55;
    filter: blur(2px);
}

.login-page .login-central-container {
    position: relative;
    z-index: 1;
    max-width: 400px;
    padding: 20px;
    animation: lpAparece 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

/* ---------- Logo + marca ---------- */
.login-page .logo-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.login-page .logo-box::before {
    content: '';
    position: absolute;
    top: -20px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.22) 0%, rgba(212, 175, 55, 0) 70%);
    z-index: 0;
}

.login-page .logo-login {
    position: relative;
    z-index: 1;
    width: 92px;
    margin: 0 auto 6px;
    animation: lpResplandorBuho 4s ease-in-out infinite;
}

@keyframes lpResplandorBuho {
    0%, 100% { filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.45)); transform: scale(1); }
    50%      { filter: drop-shadow(0 0 18px rgba(212, 175, 55, 0.8)); transform: scale(1.03); }
}

.login-page .lp-marca {
    position: relative;
    z-index: 1;
    font-family: 'Roboto Slab', 'Arial', serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 6px;
    text-transform: uppercase;
    margin: 4px 0 22px;
    background: linear-gradient(to right, #edcf7e 20%, #fff 40%, #fff 60%, #edcf7e 80%);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: lpBrillo 4s linear infinite;
}

@keyframes lpBrillo {
    to { background-position: 200% center; }
}

/* ---------- Tarjeta ---------- */
.login-page .registro-box.login-box-azul {
    position: relative;
    background: rgba(0, 20, 40, 0.62) !important;
    border: 1px solid rgba(212, 175, 55, 0.35) !important;
    border-radius: 20px !important;
    padding: 40px 36px !important;
    backdrop-filter: blur(22px) saturate(150%);
    -webkit-backdrop-filter: blur(22px) saturate(150%);
    box-shadow:
        0 25px 60px -10px rgba(0, 0, 0, 0.65),
        0 0 0 1px rgba(212, 175, 55, 0.05) inset,
        0 0 40px rgba(212, 175, 55, 0.08);
    animation: lpAparece 0.8s 0.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.login-page .registro-box.login-box-azul::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.55), transparent 30%, transparent 70%, rgba(212, 175, 55, 0.35));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.9;
}

.login-page .registro-box h2 {
    font-family: 'Roboto Slab', 'Arial', serif;
    font-size: 1.3rem !important;
    font-weight: 700;
    letter-spacing: 3px !important;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 6px !important;
    background: linear-gradient(135deg, #f3d88a 0%, #D4AF37 50%, #B8860B 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    -webkit-text-fill-color: transparent;
    text-shadow: none !important;
}

.login-page .registro-box h2::after {
    content: '';
    display: block;
    width: 42px;
    height: 2px;
    margin: 12px auto 0;
    background: linear-gradient(to right, transparent, #D4AF37, transparent);
}

.login-page .subtitle {
    text-align: center;
    color: #9fb3c8 !important;
    font-size: 0.82rem !important;
    letter-spacing: 0.5px;
    text-shadow: none !important;
    opacity: 0.9;
    margin-bottom: 28px !important;
}

/* ---------- Mensaje de error / aviso ---------- */
.login-page #mensaje-error {
    backdrop-filter: blur(6px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

/* ---------- Campos de formulario ---------- */
.login-page .input-group {
    margin-bottom: 20px !important;
}

.login-page .input-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #cda23f !important;
    opacity: 0.85;
    margin-bottom: 8px !important;
}

.login-page .input-group label i {
    font-size: 0.75rem;
    opacity: 0.8;
}

.login-page .lp-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.login-page .lp-input-wrapper .lp-input-icon {
    position: absolute;
    left: 14px;
    color: #6b7f94;
    font-size: 0.85rem;
    transition: color 0.25s ease;
    pointer-events: none;
}

.login-page .input-group input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f1f5f9;
    padding: 12px 14px 12px 40px;
    margin-top: 0;
    border-radius: 10px;
    font-size: 0.92rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.login-page .input-group input::placeholder {
    color: #5c6b7a;
}

.login-page .input-group input:focus {
    border-color: #D4AF37 !important;
    background: rgba(212, 175, 55, 0.06);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
    outline: none;
}

.login-page .input-group input:focus ~ .lp-input-icon,
.login-page .lp-input-wrapper:focus-within .lp-input-icon {
    color: #D4AF37;
}

.login-page .lp-toggle-password {
    position: absolute;
    right: 6px;
    background: none;
    border: none;
    color: #6b7f94;
    padding: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.login-page .lp-toggle-password:hover {
    color: #D4AF37;
}

.login-page .input-group input[type="password"],
.login-page .input-group input#input_password {
    padding-right: 38px;
}

/* ---------- Botón ---------- */
.login-page .btn-dorado {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px !important;
    margin-top: 24px !important;
    background: linear-gradient(135deg, #f3d88a 0%, #D4AF37 45%, #B8860B 100%) !important;
    color: #0a192f !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.28);
}

.login-page .btn-dorado::before {
    content: '';
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
}

.login-page .btn-dorado:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
    box-shadow: 0 12px 28px rgba(212, 175, 55, 0.4);
}

.login-page .btn-dorado:hover::before {
    left: 130%;
}

.login-page .btn-dorado:active {
    transform: translateY(0);
}

/* ---------- Enlaces inferiores ---------- */
.login-page .login-links {
    margin-top: 24px !important;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px !important;
}

.login-page .login-links a {
    color: #8ea0b3 !important;
    font-size: 0.82rem !important;
    text-decoration: none;
    position: relative;
    transition: color 0.25s ease;
}

.login-page .login-links a:hover {
    color: #D4AF37 !important;
}

.login-page .login-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 1px;
    background: #D4AF37;
    transition: width 0.25s ease;
}

.login-page .login-links a:hover::after {
    width: 100%;
}

@media (max-width: 480px) {
    .login-page .registro-box.login-box-azul {
        padding: 30px 22px !important;
    }
    .login-page .logo-login {
        width: 78px;
    }
}