/**
 * Login outgame: fondo imagen Vendetta + panel noir + trailer lateral (estilo OGame).
 * Solo afecta a body.vendetta-login-body y descendientes.
 */

.vendetta-login-body {
    margin: 0;
    min-height: 100vh;
    overflow-x: visible;
    background-color: #070505;
    background-image: url("/img/vendetta-theme/outgame-login-bg.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
    color: #e8e8e8;
    font-family: Arial, Helvetica, sans-serif;
}

.vendetta-login-main {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px 32px;
    box-sizing: border-box;
    min-width: 0;
}

/* Contenedor: logo fuera del eje centrado (absolute izquierda); el stack va centrado en la página. */
.vendetta-login-hero {
    position: relative;
    width: 100%;
    max-width: min(1920px, 100%);
    margin: 0 auto;
    min-width: 0;
}

.vendetta-login-stack {
    position: relative;
    z-index: 1;
    min-width: 0;
    width: auto;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
}

/* Login y trailer centrados como grupo. */
.vendetta-login-row {
    min-width: 0;
    max-width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* Columna login + pie (mismo ancho que el panel). */
.vendetta-login-primary {
    flex: 0 0 268px;
    width: 268px;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    align-self: center;
}

/* Logo: no participa en el centrado; anclado a la izquierda del hero. */
.vendetta-login-logo {
    position: absolute;
    left: clamp(4px, 2vw, 36px);
    /* Sube respecto al centro vertical del hero; solo el logo. */
    top: 50%;
    transform: translateY(calc(-50% - clamp(224px, 40vh, 620px)));
    z-index: 0;
    pointer-events: none;
    line-height: 0;
    width: auto;
    min-width: 0;
}

/* ~4× respecto al tamaño base (~520×140): tope por viewport para no desbordar. */
.vendetta-login-logo img {
    display: block;
    width: auto;
    max-width: min(2080px, 92vw);
    max-height: min(560px, 52vh);
    height: auto;
    object-fit: contain;
    transform: scaleX(1.22);
    transform-origin: left center;
    filter:
        drop-shadow(0 2px 4px rgba(0, 0, 0, 0.9))
        drop-shadow(0 0 14px rgba(180, 30, 40, 0.4));
}

.vendetta-login-panel {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    align-self: stretch;
    background: rgba(12, 10, 10, 0.72);
    border: 1px solid rgba(180, 30, 30, 0.85);
    border-radius: 10px;
    padding: 11px 13px 12px;
    box-shadow:
        0 0 28px rgba(0, 0, 0, 0.9),
        inset 0 0 0 1px rgba(255, 40, 40, 0.12);
    backdrop-filter: blur(14px);
}

/* Trailer un poco más ancho que el login. */
.vendetta-trailer-aside {
    flex: 0 0 300px;
    width: 300px;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    align-self: center;
}

.vendetta-trailer-box {
    background: rgba(12, 10, 10, 0.72);
    border: 1px solid rgba(180, 30, 30, 0.85);
    border-radius: 12px;
    padding: 14px 16px 16px;
    box-shadow:
        0 0 28px rgba(0, 0, 0, 0.9),
        inset 0 0 0 1px rgba(255, 40, 40, 0.12);
    backdrop-filter: blur(14px);
}

.vendetta-trailer-title {
    margin: 0 0 10px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.vendetta-trailer-frame {
    position: relative;
    width: 100%;
    margin: 0;
    border-radius: 4px;
    overflow: hidden;
    background: #000;
    aspect-ratio: 425 / 270;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.6);
}

.vendetta-trailer-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.vendetta-lang-row {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding-bottom: 6px;
    margin-bottom: 0;
    border-bottom: 1px solid rgba(139, 0, 0, 0.35);
}

.vendetta-lang-row img {
    width: 20px;
    height: auto;
}

.vendetta-lang-flag {
    display: block;
    line-height: 0;
    opacity: 0.55;
    filter: grayscale(70%);
    transition: opacity 0.2s ease, transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
    border-radius: 2px;
    border: 1px solid transparent;
}

.vendetta-lang-flag:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.08);
}

.vendetta-lang-flag.is-active {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.12);
    border-color: rgba(255, 60, 60, 0.9);
    box-shadow: 0 0 12px rgba(255, 0, 0, 0.45);
}

.vendetta-server-block {
    margin-bottom: 8px;
}

.vendetta-server-label {
    display: block;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    margin-bottom: 4px;
}

.vendetta-server-glow {
    position: relative;
    padding: 5px 8px;
    border-radius: 4px;
    background: rgba(0, 20, 0, 0.55);
    box-shadow:
        0 0 16px rgba(0, 255, 120, 0.35),
        inset 0 0 20px rgba(0, 255, 80, 0.08);
    border: 1px solid rgba(0, 255, 100, 0.35);
}

.vendetta-server-status-text {
    display: block;
    font-family: "Courier New", Courier, monospace;
    font-size: 11px;
    font-weight: 700;
    color: #39ff8a;
    text-shadow: 0 0 8px rgba(57, 255, 138, 0.9);
    letter-spacing: 0.06em;
    text-align: center;
    line-height: 1.25;
}

.vendetta-alert {
    border-radius: 6px;
    padding: 8px 10px;
    margin-bottom: 10px;
    font-size: 12px;
    line-height: 1.4;
}

.vendetta-alert--error {
    background: rgba(120, 0, 0, 0.45);
    border: 1px solid rgba(255, 80, 80, 0.5);
    color: #ffb3b3;
}

.vendetta-alert--success {
    background: rgba(0, 48, 28, 0.55);
    border: 1px solid rgba(80, 200, 120, 0.45);
    color: #c8ffd8;
}

.vendetta-alert ul {
    margin: 0;
    padding-left: 18px;
}

.vendetta-field {
    margin-bottom: 7px;
}

.vendetta-label {
    display: block;
    color: #f2f2f2;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.vendetta-input-wrap {
    border-radius: 8px;
    padding: 2px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(0, 0, 0, 0.2) 100%);
}

.vendetta-input-wrap--dark {
    background: linear-gradient(180deg, rgba(60, 60, 60, 0.35) 0%, rgba(0, 0, 0, 0.45) 100%);
}

.vendetta-input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    min-height: 2.25rem;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.3;
    background: linear-gradient(180deg, #f7fafc 0%, #e8eef5 100%);
    color: #0d0d0d;
    outline: none;
}

.vendetta-input:focus {
    box-shadow: 0 0 0 2px rgba(139, 0, 0, 0.45);
}

.vendetta-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23aaa' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 26px;
}

.vendetta-select--dark {
    color: #c8c8c8;
    border: 1px solid rgba(0, 0, 0, 0.5);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23aaa' d='M6 8L1 3h10z'/%3E%3C/svg%3E"),
        linear-gradient(180deg, #3a3a3a 0%, #222 100%);
    background-repeat: no-repeat, no-repeat;
    background-position: right 12px center, 0 0;
    background-size: 12px auto, 100% 100%;
}

.vendetta-select--dark:focus {
    box-shadow: 0 0 0 2px rgba(139, 0, 0, 0.55);
}

.vendetta-enter {
    width: 100%;
    margin-top: 2px;
    padding: 9px 12px;
    border: 2px solid rgba(90, 0, 0, 0.9);
    border-radius: 6px;
    background: linear-gradient(180deg, #8b0000 0%, #5c0000 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.vendetta-enter:hover {
    background: linear-gradient(180deg, #b01010 0%, #700808 100%);
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(90, 0, 0, 0.45);
}

.vendetta-enter:active {
    transform: translateY(0);
}

.vendetta-form-links {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.vendetta-form-links a {
    color: #c62828;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.9);
}

.vendetta-form-links a:hover {
    color: #ff5252;
    text-decoration: underline;
}

.vendetta-terms-hint {
    margin: 6px 0 0;
    font-size: 9px;
    line-height: 1.3;
    color: rgba(200, 200, 200, 0.75);
    text-align: center;
}

/* Pie: debajo del login, mismo ancho que el panel (.vendetta-login-primary). */
.vendetta-login-meta {
    align-self: stretch;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin: 18px 0 0;
    padding: 14px 0 0;
    text-align: left;
    font-size: 12px;
    color: #e53935;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.85);
    font-family: "Courier New", Courier, monospace;
    border-top: 1px solid rgba(139, 0, 0, 0.25);
}

.vendetta-meta-line {
    margin: 0;
    line-height: 1.45;
    max-width: 100%;
    min-width: 0;
}

.vendetta-meta-line--inline {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: flex-start;
    gap: 10px 1.5rem;
    min-width: 0;
    max-width: 100%;
}

.vendetta-meta-num {
    color: #fff;
    font-weight: 700;
}

.vendetta-meta-legal {
    margin-top: 4px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    max-width: 100%;
    min-width: 0;
}

.vendetta-meta-legal a {
    color: #c62828;
    font-size: 11px;
    text-decoration: none;
    font-weight: 700;
}

.vendetta-meta-legal a:hover {
    text-decoration: underline;
}

.vendetta-meta-dot {
    opacity: 0.6;
}

.vendetta-social-row {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
    width: 100%;
}

.vendetta-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-width: 0;
    padding: 10px 10px;
    border-radius: 8px;
    border: 1px solid rgba(180, 30, 30, 0.7);
    background: rgba(0, 0, 0, 0.55);
    color: #f5f5f5;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
}

.vendetta-social:hover {
    color: #fff;
    border-color: rgba(255, 100, 100, 0.9);
    box-shadow: 0 0 12px rgba(255, 0, 0, 0.25);
}

/* Registro (misma estética noir / rojo / monoespaciada). */
.vendetta-register-page {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
}

.vendetta-register-stack {
    align-items: center;
}

.vendetta-register-panel {
    font-family: "Courier New", Courier, monospace;
    width: 100%;
    max-width: 400px;
}

.vendetta-register-panel .vendetta-label {
    letter-spacing: 0.05em;
    font-size: 11px;
}

.vendetta-input-wrap--register {
    border-radius: 6px;
    border: 1px solid rgba(190, 40, 45, 0.9);
    background: rgba(0, 0, 0, 0.5);
    padding: 2px;
}

.vendetta-input-wrap--register .vendetta-input {
    background: rgba(14, 12, 12, 0.95);
    color: #ececec;
}

.vendetta-input-wrap--register .vendetta-input::placeholder {
    color: rgba(200, 200, 200, 0.45);
}

.vendetta-field--checks {
    margin-top: 4px;
    margin-bottom: 2px;
}

.vendetta-check-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-family: "Courier New", Courier, monospace;
    font-size: 10px;
    line-height: 1.4;
    color: rgba(235, 235, 235, 0.92);
    cursor: pointer;
}

.vendetta-check-row input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    accent-color: #b71c1c;
}

.vendetta-check-row a {
    color: #ff5252;
    font-weight: 700;
    text-decoration: none;
}

.vendetta-check-row a:hover {
    text-decoration: underline;
}

.vendetta-register-submit {
    margin-top: 6px;
}

.vendetta-register-login-link {
    margin: 16px 0 0;
    text-align: center;
    font-family: "Courier New", Courier, monospace;
    font-size: 11px;
    color: rgba(220, 220, 220, 0.85);
}

.vendetta-register-login-link a {
    color: #ff5252;
    font-weight: 700;
    text-decoration: none;
}

.vendetta-register-login-link a:hover {
    text-decoration: underline;
}

/* Recuperar contraseña: tarjeta negra, título rojo, campo claro con borde rojo. */
.vendetta-recover-page {
    max-width: 480px;
}

.vendetta-recover-card {
    text-align: center;
    background: #000;
    border: 1px solid rgba(200, 35, 40, 0.95);
    box-shadow:
        0 0 32px rgba(120, 0, 0, 0.35),
        inset 0 0 0 1px rgba(255, 50, 50, 0.1);
    padding: 20px 18px 18px;
}

.vendetta-recover-brand {
    margin: 0 0 8px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(28px, 8vw, 40px);
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #ff1a1a;
    text-shadow: 0 0 18px rgba(255, 0, 0, 0.45);
    line-height: 1.1;
}

.vendetta-recover-subtitle {
    margin: 0 0 18px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #fff;
    opacity: 0.95;
}

.vendetta-recover-card .vendetta-login-form {
    text-align: left;
}

.vendetta-recover-label {
    color: #ff3030 !important;
    font-weight: 800 !important;
    text-transform: none;
}

.vendetta-recover-input-wrap {
    border-radius: 8px !important;
    border: 1px solid rgba(200, 35, 40, 0.95) !important;
    background: #fff !important;
}

.vendetta-recover-input {
    background: #fff !important;
    color: #1a1a1a !important;
    border-radius: 6px !important;
}

.vendetta-recover-input::placeholder {
    color: rgba(80, 80, 80, 0.55) !important;
}

.vendetta-recover-submit {
    margin-top: 14px;
    font-size: 11px;
    letter-spacing: 0.06em;
    line-height: 1.35;
    white-space: normal;
    padding: 12px 10px;
}

.vendetta-recover-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: 700;
}

.vendetta-recover-links a {
    color: #ff6b8a;
    text-decoration: none;
}

.vendetta-recover-links a:hover {
    color: #ff9eb0;
    text-decoration: underline;
}

.vendetta-register-meta {
    margin-top: 24px;
    text-align: center;
    align-items: center !important;
}

.vendetta-register-meta .vendetta-meta-line,
.vendetta-register-meta .vendetta-meta-line--inline {
    justify-content: center;
    text-align: center;
}

.vendetta-register-meta .vendetta-meta-legal {
    justify-content: center;
}

.vendetta-register-meta .vendetta-social-row {
    justify-content: center;
}

@media (max-width: 900px) {
    .vendetta-login-hero {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .vendetta-login-stack {
        width: 100%;
        max-width: 100%;
    }

    .vendetta-login-row {
        flex-direction: column;
        align-items: center;
    }

    .vendetta-login-primary {
        width: 100%;
        max-width: 320px;
        flex: 1 1 auto;
    }

    .vendetta-login-logo {
        position: static;
        transform: none;
        pointer-events: auto;
        margin: 0 0 12px;
        align-self: center;
    }

    .vendetta-login-logo img {
        max-width: min(600px, 94vw);
        max-height: min(200px, 32vh);
        transform: scaleX(1.14);
        transform-origin: center center;
    }

    .vendetta-login-panel,
    .vendetta-trailer-aside {
        flex: 1 1 auto;
        width: 100%;
        max-width: 320px;
    }

    .vendetta-login-meta {
        max-width: 100%;
        align-items: flex-start;
        text-align: left;
        padding-left: 0;
        padding-right: 0;
    }

    .vendetta-meta-line {
        text-align: left;
    }

    .vendetta-meta-legal,
    .vendetta-social-row {
        justify-content: flex-start;
    }
}

@media (max-width: 420px) {
    .vendetta-login-panel {
        padding: 12px 14px 13px;
    }

    .vendetta-form-links {
        flex-direction: column;
        text-align: center;
    }
}
