/* ===================== RESET ===================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    font-family: "JetBrains Mono", monospace;
}

body {
    background-color: #0a0a0a;
    color: #d0d0d0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===================== CONTENEDOR ===================== */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    width: 100%;
    padding: 20px;
}

/* ===================== FORM BOX ===================== */
.form_box {
    background: #151515;
    border: 2px solid #2a2a2a;
    padding: 30px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    max-width: 500px;
    width: 100%;
}

/* ===================== LOGIN BOX ===================== */
.login_box {
    background: #101010;
    border: 1px solid #3a3a3a;
    padding: 30px;
    width: 80%;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.login_box img {
    width: 80px;
    height: auto;
    margin: 0 auto;
}

.login_box h3 {
    color: #e0e0e0;
    font-size: 16px;
    margin: 0 0 5px;
    text-align: center;
}

/* ===================== INPUTS ===================== */
.login_box input {
    background: #101010;
    border: 1px solid #4a4a4a;
    color: #e0e0e0;
    width: 100%;
    height: 38px;
    padding: 6px 8px;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
    transition: border 0.2s ease;
}

.login_box input:focus {
    outline: none;
    border-color: #d0d0d0;
}

/* ===================== BOTÓN SUBMIT ===================== */
.login_box button[type="submit"] {
    background-color: #1a1a1a;
    border: 1px solid #4a4a4a;
    width: 100%;
    height: 42px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    font-family: inherit;
    color: #e0e0e0;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.login_box button[type="submit"]:hover {
    background-color: #252525;
    border-color: #666;
}

/* ===================== SEPARADOR ===================== */
.divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 2px 0;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #2e2e2e;
}

.divider span {
    color: #444;
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* ===================== BOTÓN VIDEO INTRO ===================== */
.btn_intro_video {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    height: auto;
    cursor: pointer;
    background: transparent;
    border: 1px solid #363636;
    color: #888;
    font-family: "JetBrains Mono", monospace;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    transition:
        border-color 0.25s ease,
        color 0.25s ease,
        background 0.25s ease;
}

/* Barrido de brillo horizontal al hover */
.btn_intro_video::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}

.btn_intro_video:hover::before {
    transform: translateX(100%);
}

.btn_intro_video:hover {
    border-color: #555;
    color: #bbb;
    background: #141414;
}

/* Círculo con icono play */
.btn_intro_video .play_icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border: 1px solid #444;
    border-radius: 50%;
    position: relative;
    transition: border-color 0.25s ease;
    animation: pulse_ring 2.8s ease-in-out infinite;
}

.btn_intro_video:hover .play_icon {
    border-color: #777;
    animation-play-state: paused;
}

.btn_intro_video .play_icon svg {
    width: 8px;
    height: 8px;
    fill: #888;
    margin-left: 1px;
    transition: fill 0.25s ease;
}

.btn_intro_video:hover .play_icon svg {
    fill: #bbb;
}

/* Pulso: solo sombra exterior, no fondo */
@keyframes pulse_ring {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }

    50% {
        box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.04);
    }
}

.btn_intro_video .btn_label {
    flex: 1;
    text-align: left;
}

/* Chevron aparece deslizándose al hover */
.btn_intro_video .chevron {
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    font-size: 10px;
    color: #777;
}

.btn_intro_video:hover .chevron {
    opacity: 1;
    transform: translateX(0);
}

/* ===================== MENSAJES ===================== */
.message {
    color: #ff5555;
    text-align: center;
    font-size: 14px;
}

/* ===================== MODAL DE VIDEO ===================== */
.video_modal_overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.video_modal_overlay.active {
    display: flex;
}

.video_modal {
    position: relative;
    width: 90%;
    max-width: 900px;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 4px;
    overflow: visible;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.8);
}

#video_modal_container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 4px;
}

.video_modal iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.video_modal_close {
    position: absolute;
    top: -44px;
    right: 0;
    background: none !important;
    border: none !important;
    color: #fff;
    font-size: 2.2rem;
    font-weight: normal;
    font-family: inherit;
    height: auto;
    width: auto;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    transition: opacity 0.2s;
}

.video_modal_close:hover {
    background: none !important;
    opacity: 0.6;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .form_box {
        padding: 20px;
        max-width: 100%;
        border-left: none;
        box-shadow: none;
    }

    .login_box {
        width: 100%;
        padding: 20px;
    }

    .form_box h1,
    .login_box h3 {
        font-size: 18px;
    }

    .video_modal {
        width: 96%;
    }
}