/* ==========================================================
   Login Alert (simple bold red/orange text notification)
   ========================================================== */

.login-alert {
    margin: 10px 0 6px 0;
    padding: 10px 12px;
    border-radius: 6px;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    font-size: 12.5px;
    line-height: 1.5;
    border-left: 3px solid;
    background: rgba(239, 68, 68, 0.06);
    animation: loginAlertSlideIn 0.3s ease;
    max-width: 360px;
    word-wrap: break-word;
}

.login-alert-error {
    border-left-color: #dc2626;
    color: #b91c1c;
    font-weight: 600;
}
.login-alert-warning {
    border-left-color: #d97706;
    color: #b45309;
    background: rgba(245, 158, 11, 0.07);
    font-weight: 600;
}
.login-alert-success {
    border-left-color: #16a34a;
    color: #15803d;
    background: rgba(34, 197, 94, 0.07);
    font-weight: 600;
}

.login-alert i,
.login-alert em {
    display: block;
    margin-top: 4px;
    font-size: 11.5px;
    font-weight: 400;
    opacity: 0.85;
    font-style: italic;
}

/* Countdown timer wrapper */
.login-alert .block-timer-wrap {
    display: block;
    margin: 8px 0;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.55);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}
.login-alert .block-countdown {
    display: inline-block;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 16px;
    font-weight: 700;
    padding: 2px 8px;
    margin-left: 4px;
    background: rgba(217, 119, 6, 0.15);
    border-radius: 4px;
    color: #92400e;
    letter-spacing: 0.05em;
    animation: countdownPulse 1s ease-in-out infinite;
}
.login-alert-error .block-countdown {
    background: rgba(220, 38, 38, 0.15);
    color: #991b1b;
}
.login-alert .block-countdown.expired {
    background: rgba(34, 197, 94, 0.18);
    color: #15803d;
    animation: none;
}
@keyframes countdownPulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.65; }
}

@keyframes loginAlertSlideIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ==========================================================
   Login Page Slider — modern Netflix-style with lightbox zoom
   ========================================================== */

.slider-container {
    float: right;
    width: 70%;
    max-width: 720px;
    margin-right: 0;
    padding: 0 8px;
}
@media (max-width: 900px) {
    .slider-container {
        float: none;
        width: 100%;
        margin: 20px auto 0;
    }
}

.slideshow-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.15);
    border-radius: 14px;
    overflow: hidden;
    background-color: #0f172a;
    aspect-ratio: 16 / 9;
}

.mySlides {
    display: none;
    position: absolute;
    inset: 0;
    animation: slideFadeIn 0.7s ease;
}
.mySlides.active-slide { display: block; }

.slide-bg-blur {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    filter: blur(28px) brightness(0.65) saturate(1.2);
    transform: scale(1.15);
}

.slide-fg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: zoom-in;
    transition: transform 0.4s ease, filter 0.3s ease;
}
.slide-fg-image:hover {
    transform: scale(1.03);
    filter: brightness(1.05);
}

.zoom-hint {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(15, 23, 42, 0.6);
    color: #fff;
    padding: 5px 10px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 4;
    pointer-events: none;
    backdrop-filter: blur(4px);
}
.slideshow-container:hover .zoom-hint { opacity: 0.95; }

@keyframes slideFadeIn {
    from { opacity: 0; transform: scale(0.98); }
    to   { opacity: 1; transform: scale(1); }
}

.slide-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.55);
    color: #fff;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease, background 0.25s ease, transform 0.2s ease;
    z-index: 5;
    backdrop-filter: blur(4px);
}
.slideshow-container:hover .slide-nav { opacity: 0.9; }
.slide-nav:hover { background: rgba(37, 99, 235, 0.95); transform: translateY(-50%) scale(1.1); }
.slide-nav.prev { left: 12px; }
.slide-nav.next { right: 12px; }

.slide-dots { text-align: center; margin-top: 14px; }
.dot {
    cursor: pointer;
    height: 8px;
    width: 8px;
    margin: 0 4px;
    background-color: #cbd5e1;
    border-radius: 50%;
    display: inline-block;
    transition: all 0.3s ease;
}
.dot:hover { background-color: #94a3b8; transform: scale(1.2); }
.dot.active { background-color: #2563eb; width: 28px; border-radius: 4px; }

.slide-progress {
    position: absolute;
    bottom: 0; left: 0;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #38bdf8);
    width: 0;
    transition: width 0.1s linear;
    z-index: 4;
}

@media (max-width: 768px) {
    .slideshow-container { border-radius: 10px; }
    .slide-nav { width: 32px; height: 32px; }
    .dot.active { width: 22px; }
}

/* === LIGHTBOX === */
.image-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    animation: lightboxFadeIn 0.25s ease;
}
.image-lightbox.open { display: flex; }
.image-lightbox img {
    max-width: 92vw;
    max-height: 92vh;
    object-fit: contain;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
    border-radius: 6px;
    animation: lightboxZoomIn 0.3s ease;
    cursor: zoom-out;
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    color: #fff;
    cursor: pointer;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    transition: background 0.2s ease, transform 0.2s ease;
    user-select: none;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.28); transform: rotate(90deg); }
.lightbox-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.85);
    font-size: 13px;
    font-weight: 500;
    background: rgba(0,0,0,0.4);
    padding: 6px 14px;
    border-radius: 20px;
}
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    transition: background 0.2s ease, transform 0.2s ease;
    user-select: none;
}
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.28); transform: translateY(-50%) scale(1.1); }
.lightbox-nav.prev { left: 24px; }
.lightbox-nav.next { right: 24px; }

@keyframes lightboxFadeIn { from {opacity:0} to {opacity:1} }
@keyframes lightboxZoomIn { from {opacity:0; transform:scale(0.85)} to {opacity:1; transform:scale(1)} }
