/* ============================================
   LOGIN MODERNO - EFECTOS SUTILES
   Hotel D'Confort - StormFox.dll
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #4facfe;
    --secondary: #00f2fe;
    --accent: #667eea;
    --bg-dark: #0f172a;
    --text-light: #ffffff;
    --text-gray: #94a3b8;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
    overflow: hidden;
    position: relative;
}

/* ============================================
   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.5);
}

.slide.active {
    opacity: 1;
}

/* Overlay suave */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(79, 172, 254, 0.2) 0%,
        rgba(102, 126, 234, 0.3) 100%
    );
    z-index: 1;
}

/* ============================================
   INDICADORES DEL CARRUSEL
   ============================================ */
.slider-indicators {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator:hover {
    background: rgba(255, 255, 255, 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 20px var(--primary);
    }
}

/* ============================================
   CONTENEDOR LOGIN - GLASSMORPHISM
   ============================================ */
.login-container {
    position: relative;
    z-index: 2;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 45px 40px;
    width: 90%;
    max-width: 420px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeIn 0.8s ease-out;
}

@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(79, 172, 254, 0.3);
    overflow: hidden;
    animation: logoPulse 3s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.logo-icon:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(79, 172, 254, 0.5);
}

@keyframes logoPulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(79, 172, 254, 0.3);
    }
    50% {
        box-shadow: 0 8px 30px rgba(79, 172, 254, 0.5);
    }
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.logo h1 {
    font-size: 28px;
    color: var(--text-light);
    margin-bottom: 8px;
    font-weight: 700;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.logo p {
    color: var(--text-gray);
    font-size: 14px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

@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;
}

.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;
}

input {
    width: 100%;
    padding: 14px 18px 14px 45px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-light);
    font-size: 14px;
    transition: all 0.3s ease;
}

input::placeholder {
    color: rgba(148, 163, 184, 0.5);
}

input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 172, 254, 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;
}

.toggle-password:hover {
    color: var(--primary);
}

/* ============================================
   BOTĆ“N LOGIN
   ============================================ */
.login-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 25px;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: slideInUp 0.6s ease 0.8s both;
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.login-btn:hover::before {
    width: 300px;
    height: 300px;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 172, 254, 0.4);
}

.login-btn:active {
    transform: translateY(0) scale(0.98);
}

.login-btn i {
    transition: transform 0.3s ease;
}

.login-btn:hover i {
    transform: translateX(3px);
}

/* ============================================
   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;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border-left: 3px solid #ef4444;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.15);
    color: #fcd34d;
    border-left: 3px solid #f59e0b;
}

/* ============================================
   FOOTER CREDITS
   ============================================ */
.footer-credits {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    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
   ============================================ */
@media (max-width: 480px) {
    .login-container {
        padding: 35px 28px;
    }

    .logo-icon {
        width: 75px;
        height: 75px;
        font-size: 38px;
    }

    .logo h1 {
        font-size: 24px;
    }
}