html,
body {
    height: 100%;
    margin: 0;
    background: #000;
}

.slider {
    position: fixed;
    inset: 0;
    overflow: hidden;
}

.slider img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: fade 50s infinite linear;
    user-select: none;
    pointer-events: none;
}

.slider img:nth-child(1) {
    --i: 0;
    z-index: 5;
    animation-delay: calc(var(--i) * 10s);
}

.slider img:nth-child(2) {
    --i: 1;
    z-index: 4;
    animation-delay: calc(var(--i) * 10s);
}

.slider img:nth-child(3) {
    --i: 2;
    z-index: 3;
    animation-delay: calc(var(--i) * 10s);
}

.slider img:nth-child(4) {
    --i: 3;
    z-index: 2;
    animation-delay: calc(var(--i) * 10s);
}

.slider img:nth-child(5) {
    --i: 4;
    z-index: 1;
    animation-delay: calc(var(--i) * 10s);
}

@keyframes fade {
    0% {
        opacity: 0;
    }

    2% {
        opacity: 1;
    }

    18% {
        opacity: 1;
    }

    20% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

/* Accesibilidad: si el usuario prefiere reducir animaciones, muestra solo la primera */
@media (prefers-reduced-motion: reduce) {
    .slider img {
        animation: none;
    }

    .slider img:not(:first-child) {
        display: none;
    }

    .slider img:first-child {
        opacity: 1;
    }
}

/* Panel superpuesto a la izquierda */
.overlay-panel {
    position: fixed;
    right: 0;
    top: 0;
    width: 25vw;
    height: 100vh;
    background: #2a2e3d;
    opacity: 0.9;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: -12px 0 32px -12px rgba(0,0,0,0.25);
}

@supports (height: 100svh){
  .overlay-panel{ height: 100svh; }
}

@media (max-width: 1100px) {
    .overlay-panel {
        width: 33vw;
    }
}

@media (max-width: 1024px) {
    .overlay-panel {
        width: 50vw;
    }
}

@media (max-width: 600px) {
    .overlay-panel {
        width: 100vw;
        left: 0;
        right: 0;
    }
}

.powered-by {
    margin-top: auto; 
    position: sticky;
    bottom: 10px;
    left: 0;
    transform: none;
    width: 100%;
    color: #fff;
    font-size: 1rem;
    opacity: 0.7;
    font-family: Arial, Helvetica, sans-serif;
    letter-spacing: 1px;
    text-align: center;
}

.powered-by a {
    color: #fff;
    text-decoration: none;
}

/* Form Login */

.login-form {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    height: auto;
    padding: 0px 32px 16px 32px;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
}

.login-form h2 {
    margin-bottom: 32px;
    font-size: 2rem;
    font-weight: 700;
    align-self: center;
    text-align: center;
}

.login-form label {
    margin-bottom: 8px;
    font-size: 1rem;
}

.dx-field-value:not(.dx-switch):not(.dx-checkbox):not(.dx-button), .dx-field-value-static {
    width: 100%;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    background: #132a4f;
    color: #fff;
}

.login-form button {
    width: 100%;
    padding: 12px;
    background: #21c96b;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 18px;
    transition: background 0.2s;
}

.login-form button:hover {
    background: #179e4e;
}

.forgot-link {
    color: #fff;
    text-decoration: underline;
    font-size: 0.95rem;
    margin-top: 8px;
    align-self: flex-end;
    cursor: pointer;
}