/* ============================================
   LOGIN MODERNO - NEGRO, AMARILLO Y BLANCO
   Hotel D'Confort - StormFox.dll
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #f5c518;        /* Amarillo dorado */
    --secondary: #ffe066;      /* Amarillo claro */
    --accent: #e6a800;         /* Amarillo oscuro / hover */
    --bg-dark: #0a0a0a;        /* Negro profundo */
    --bg-card: #111111;        /* Negro suave para card */
    --text-light: #ffffff;
    --text-gray: #aaaaaa;
}

body {
    font-family: 'Barlow', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    padding: 20px 0;
}

/* ============================================
   FONDO ANIMADO CON CARRUSEL
   ============================================ */
.background-slider {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    filter: brightness(0.35) saturate(0.6);
}

.slide.active {
    opacity: 1;
}

/* Overlay negro-amarillo */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(245, 197, 24, 0.12) 100%
    );
    z-index: 1;
}

/* ============================================
   INDICADORES DEL CARRUSEL
   ============================================ */
.slider-indicators {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator:hover {
    background: rgba(245, 197, 24, 0.6);
    transform: scale(1.3);
}

.indicator.active {
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
    transform: scale(1.2);
    animation: indicatorPulse 2s ease-in-out infinite;
}

@keyframes indicatorPulse {
    0%, 100% { box-shadow: 0 0 10px var(--primary); }
    50%       { box-shadow: 0 0 22px var(--primary); }
}

/* ============================================
   CONTENEDOR LOGIN
   ============================================ */
.login-container {
    position: relative;
    z-index: 2;
    background: rgba(10, 10, 10, 0.82);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border-radius: 24px;
    padding: 45px 40px;
    width: 90%;
    max-width: 420px;
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(245, 197, 24, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(245, 197, 24, 0.15);
    animation: fadeIn 0.8s ease-out;
    margin: auto;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ============================================
   LOGO
   ============================================ */
.logo {
    text-align: center;
    margin-bottom: 35px;
}

.logo-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(245, 197, 24, 0.25);
    overflow: hidden;
    animation: logoPulse 3s ease-in-out infinite;
    transition: transform 0.3s ease;
    border: 2px solid rgba(245, 197, 24, 0.3);
}

.logo-icon:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(245, 197, 24, 0.45);
}

@keyframes logoPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(245, 197, 24, 0.25); }
    50%       { box-shadow: 0 8px 30px rgba(245, 197, 24, 0.45); }
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.logo h1 {
    font-size: 28px;
    color: var(--text-light);
    margin-bottom: 8px;
    font-weight: 700;
    letter-spacing: -0.5px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

/* Detalle amarillo en el nombre del hotel */
.logo h1 span {
    color: var(--primary);
}

.logo p {
    color: var(--text-gray);
    font-size: 14px;
    animation: fadeInUp 0.8s ease 0.4s both;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 11px;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================
   FORMULARIO
   ============================================ */
.form-group {
    margin-bottom: 22px;
    animation: slideInLeft 0.6s ease both;
}

.form-group:nth-child(1) { animation-delay: 0.5s; }
.form-group:nth-child(2) { animation-delay: 0.65s; }

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to   { opacity: 1; transform: translateX(0); }
}

.form-group label {
    display: block;
    color: var(--text-light);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.form-group label i {
    color: var(--primary);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    color: var(--primary);
    font-size: 16px;
    transition: all 0.3s ease;
    pointer-events: none;
}

input {
    width: 100%;
    padding: 14px 18px 14px 45px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: var(--text-light);
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: inherit;
}

input::placeholder {
    color: rgba(170, 170, 170, 0.4);
}

input:focus {
    outline: none;
    background: rgba(245, 197, 24, 0.05);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(245, 197, 24, 0.1);
    transform: translateY(-2px);
}

input:focus + .input-icon {
    color: var(--primary);
    transform: scale(1.1);
    filter: drop-shadow(0 0 5px var(--primary));
}

.toggle-password {
    position: absolute;
    right: 16px;
    color: var(--text-gray);
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 1;
    padding: 5px;
}

.toggle-password:hover {
    color: var(--primary);
}

/* ============================================
   BOTÓN LOGIN - AMARILLO SÓLIDO
   ============================================ */
.login-btn {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    border: none;
    border-radius: 12px;
    color: #0a0a0a;           /* Texto negro sobre amarillo */
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 25px;
    box-shadow: 0 4px 20px rgba(245, 197, 24, 0.35);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: slideInUp 0.6s ease 0.8s both;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.login-btn:hover::before {
    width: 350px;
    height: 350px;
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.login-btn:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(245, 197, 24, 0.5);
}

.login-btn:active {
    transform: translateY(0) scale(0.98);
}

.login-btn i {
    transition: transform 0.3s ease;
}

.login-btn:hover i {
    transform: translateX(4px);
}

/* ============================================
   ALERTAS
   ============================================ */
.alert {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(10px);
    animation: slideDown 0.4s ease;
    font-size: 13px;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-15px); }
    to   { opacity: 1; transform: translateY(0); }
}

.alert-danger {
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
    border-left: 3px solid #ef4444;
}

.alert-warning {
    background: rgba(245, 197, 24, 0.1);
    color: var(--secondary);
    border-left: 3px solid var(--primary);
}

/* ============================================
   FOOTER CREDITS
   ============================================ */
.footer-credits {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(245, 197, 24, 0.12);
    text-align: center;
    color: var(--text-gray);
    font-size: 12px;
    line-height: 1.8;
    animation: fadeIn 1s ease 1s both;
}

.footer-credits i {
    color: var(--primary);
    margin-right: 5px;
    transition: transform 0.3s ease;
}

.footer-credits:hover i {
    transform: scale(1.2);
}

.footer-credits strong {
    color: var(--text-light);
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-credits:hover strong {
    color: var(--primary);
}

/* ============================================
   RESPONSIVE MÓVILES
   ============================================ */

@media (max-width: 1024px) {
    .login-container { width: 85%; max-width: 400px; }
}

@media (max-width: 768px) {
    body { padding: 15px 0; }

    .login-container {
        padding: 35px 30px;
        width: 92%;
        max-width: 380px;
        border-radius: 20px;
    }

    .logo-icon { width: 90px; height: 90px; margin-bottom: 15px; }
    .logo h1 { font-size: 24px; margin-bottom: 6px; }
    .logo p { font-size: 13px; }
    .logo { margin-bottom: 28px; }
    input { padding: 13px 16px 13px 42px; font-size: 14px; }
    .login-btn { padding: 15px; font-size: 14px; margin-top: 20px; }
    .footer-credits { margin-top: 25px; font-size: 11px; }
    .slider-indicators { bottom: 15px; gap: 6px; }
    .indicator { width: 8px; height: 8px; }
}

@media (max-width: 480px) {
    body { padding: 10px 0; min-height: 100svh; }

    .login-container {
        padding: 25px 20px;
        width: 94%;
        max-width: 360px;
        border-radius: 18px;
    }

    .logo-icon { width: 75px; height: 75px; margin-bottom: 12px; }
    .logo h1 { font-size: 22px; margin-bottom: 5px; }
    .logo p { font-size: 12px; }
    .logo { margin-bottom: 22px; }
    .form-group { margin-bottom: 18px; }
    .form-group label { font-size: 12px; margin-bottom: 7px; }
    .input-wrapper { height: 46px; }
    .input-icon { left: 14px; font-size: 15px; }

    input {
        padding: 12px 14px 12px 40px;
        font-size: 13px;
        border-radius: 10px;
        height: 46px;
    }

    .toggle-password { right: 14px; font-size: 16px; }
    .login-btn { padding: 14px; font-size: 14px; margin-top: 18px; border-radius: 10px; gap: 6px; }

    .alert { padding: 12px 14px; font-size: 12px; gap: 8px; margin-bottom: 15px; }

    .footer-credits { margin-top: 20px; padding-top: 18px; font-size: 10px; line-height: 1.6; }

    .slider-indicators { bottom: 12px; gap: 5px; }
    .indicator { width: 7px; height: 7px; }

    /* Reducir animaciones en móviles */
    .login-btn:hover { transform: none; }
    .logo-icon:hover { transform: none; }
}

@media (max-width: 360px) {
    .login-container { padding: 20px 16px; width: 96%; }
    .logo-icon { width: 65px; height: 65px; }
    .logo h1 { font-size: 20px; }
    .logo p { font-size: 11px; }
    input { padding: 11px 12px 11px 38px; font-size: 13px; }
    .input-icon { left: 12px; font-size: 14px; }
    .login-btn { padding: 13px; font-size: 13px; }
    .footer-credits { font-size: 9px; }
}

@media (max-height: 600px) and (orientation: landscape) {
    body { padding: 5px 0; }

    .login-container { padding: 20px 25px; margin: 5px auto; }

    .logo-icon { width: 60px; height: 60px; margin-bottom: 8px; }
    .logo { margin-bottom: 15px; }
    .logo h1 { font-size: 20px; margin-bottom: 4px; }
    .logo p { font-size: 11px; }
    .form-group { margin-bottom: 15px; }
    .login-btn { margin-top: 15px; padding: 12px; }
    .footer-credits { margin-top: 15px; padding-top: 12px; }
    .slider-indicators { bottom: 8px; }
}