/* ==========================================================================
   LOGIN · ESTILO BOND
   Negro profundo, latón, marfil y tipografía de cartel. El hueco del logo
   (#bond-login-logo) está preparado para sustituir la imagen por el asset
   animado cuando llegue.
   ========================================================================== */

.bond-login.auth-body {
    --auth-bg: #050505;
    --auth-card: #0b0b0a;
    --auth-line: #2e281a;
    --auth-line-strong: #c9a227;
    --auth-input: #070707;
    --auth-text: #f4f1e8;
    --auth-text-soft: #c9c2b2;
    --auth-text-muted: #8b8373;
    --auth-violet: #c9a227;
    --auth-blue: #c9a227;
    --auth-green: #c9a227;

    background:
        radial-gradient(ellipse 52% 42% at 50% 18%, #211b0d 0%, transparent 68%),
        radial-gradient(ellipse 38% 26% at 50% 100%, #17130a 0%, transparent 72%),
        linear-gradient(180deg, #070707 0%, #050505 58%, #030303 100%);
    font-family: var(--font-body, "IBM Plex Sans", sans-serif);
}

/* Rejilla de archivo, mucho más discreta que la azul del tema anterior. */
.bond-login.auth-body::before {
    background-image:
        linear-gradient(rgba(201, 162, 39, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201, 162, 39, .045) 1px, transparent 1px);
    background-size: 72px 72px;
    -webkit-mask-image: radial-gradient(ellipse 70% 62% at 50% 45%, #000 8%, transparent 82%);
    mask-image: radial-gradient(ellipse 70% 62% at 50% 45%, #000 8%, transparent 82%);
}

.bond-login .bond-login-atmosphere {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.bond-login .bond-login-beam {
    position: absolute;
    top: -18%;
    width: 1px;
    height: 136%;
    background: linear-gradient(180deg, transparent, rgba(201, 162, 39, .22) 35%, rgba(201, 162, 39, .05) 68%, transparent);
    transform: rotate(24deg);
    transform-origin: center;
}

.bond-login .bond-login-beam-a { left: 18%; opacity: .8; }
.bond-login .bond-login-beam-b { right: 16%; opacity: .45; transform: rotate(-24deg); }

.bond-login .bond-login-vignette {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 46% 42% at 50% 44%, rgba(201, 162, 39, .06), transparent 70%),
        radial-gradient(ellipse 90% 80% at 50% 50%, transparent 42%, rgba(0, 0, 0, .72) 100%);
}

.bond-login .bond-login-shell {
    max-width: 462px;
    padding: 34px 20px;
}

.bond-login .bond-login-card {
    padding: 28px 36px 24px;
    background:
        linear-gradient(180deg, rgba(17, 16, 13, .98), rgba(8, 8, 7, .98));
    border: 1px solid #2e281a;
    border-radius: 2px;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow:
        0 34px 90px rgba(0, 0, 0, .82),
        0 0 0 1px rgba(201, 162, 39, .045) inset,
        0 0 72px rgba(201, 162, 39, .035);
}

.bond-login .bond-login-card::before {
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #c9a227 18%, #f0d27a 50%, #c9a227 82%, transparent);
    opacity: .8;
}

.bond-login .bond-login-card::after {
    content: "";
    position: absolute;
    left: 12%;
    right: 12%;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 162, 39, .35), transparent);
    pointer-events: none;
}

.bond-login .bond-login-eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0 0 20px;
    color: #b99b42;
    font-family: var(--font-condensed, "Oswald", sans-serif);
    font-size: 8px;
    font-weight: 500;
    letter-spacing: .34em;
    text-transform: uppercase;
}

.bond-login .bond-login-eyebrow span {
    width: 42px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 162, 39, .62));
}

.bond-login .bond-login-eyebrow span:last-child {
    background: linear-gradient(90deg, rgba(201, 162, 39, .62), transparent);
}

.bond-login .bond-login-eyebrow em {
    font-style: normal;
    white-space: nowrap;
}

.bond-login .bond-login-head {
    margin-bottom: 18px;
}

/* --------------------------------------------------------------------------
   Hueco del logo animado
   -------------------------------------------------------------------------- */

.bond-login .bond-logo-stage {
    position: relative;
    display: grid;
    place-items: center;
    width: 168px;
    height: 168px;
    margin: 0 auto 18px;
    overflow: hidden;
    border: 1px solid #3b321d;
    border-radius: 2px;
    background:
        radial-gradient(circle at 50% 46%, rgba(201, 162, 39, .13), transparent 62%),
        linear-gradient(145deg, #0c0b08, #050505);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, .8) inset,
        0 0 42px rgba(201, 162, 39, .07) inset,
        0 20px 54px rgba(0, 0, 0, .66);
}

.bond-login .bond-logo-stage::after {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(201, 162, 39, .12);
    pointer-events: none;
}

.bond-login .bond-logo-ring {
    position: absolute;
    inset: 19px;
    border: 1px dashed rgba(201, 162, 39, .28);
    border-radius: 50%;
    animation: bond-logo-spin 46s linear infinite;
    pointer-events: none;
}

.bond-login .bond-logo-corner {
    position: absolute;
    z-index: 3;
    width: 13px;
    height: 13px;
    border-color: #c9a227;
    border-style: solid;
    opacity: .92;
    pointer-events: none;
}

.bond-login .bond-logo-corner-tl { top: 7px; left: 7px; border-width: 1px 0 0 1px; }
.bond-login .bond-logo-corner-tr { top: 7px; right: 7px; border-width: 1px 1px 0 0; }
.bond-login .bond-logo-corner-bl { bottom: 7px; left: 7px; border-width: 0 0 1px 1px; }
.bond-login .bond-logo-corner-br { bottom: 7px; right: 7px; border-width: 0 1px 1px 0; }

.bond-login .bond-logo-img {
    position: relative;
    z-index: 2;
    display: block;
    width: 78%;
    height: 78%;
    object-fit: contain;
    filter: drop-shadow(0 0 18px rgba(201, 162, 39, .24));
}

/* Placeholder temporal: el logo antiguo se tiñe de latón hasta que llegue el
   asset animado. Al sustituirlo, quitar la clase is-placeholder. */
.bond-login .bond-logo-img.is-placeholder {
    filter:
        grayscale(1)
        sepia(.9)
        saturate(1.9)
        brightness(.88)
        contrast(1.06)
        drop-shadow(0 0 22px rgba(201, 162, 39, .28));
}

/* Vídeo del logo: ocupa todo el marco, detrás de las esquinas doradas. */
.bond-login .bond-logo-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    filter: saturate(1.04) contrast(1.02);
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   Marca y textos
   -------------------------------------------------------------------------- */

.bond-login .auth-app-name {
    margin: 0;
    color: #f4f1e8;
    font-family: var(--font-display, "Bebas Neue", sans-serif);
    font-size: 46px;
    font-weight: 400;
    letter-spacing: .045em;
    line-height: .96;
    text-transform: uppercase;
    text-shadow: 0 0 34px rgba(201, 162, 39, .08);
}

.bond-login .auth-tagline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    max-width: 330px;
    margin: 10px auto 0;
    color: #b99b42;
    font-family: var(--font-condensed, "Oswald", sans-serif);
    font-size: 8px;
    font-weight: 500;
    letter-spacing: .36em;
    text-transform: uppercase;
    white-space: nowrap;
}

.bond-login .auth-tagline::before,
.bond-login .auth-tagline::after {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 162, 39, .55));
}

.bond-login .auth-tagline::after {
    background: linear-gradient(90deg, rgba(201, 162, 39, .55), transparent);
}

.bond-login .auth-intro {
    margin: 0 0 16px;
    color: #8f8777;
    font-family: var(--font-condensed, "Oswald", sans-serif);
    font-size: 9px;
    font-weight: 400;
    letter-spacing: .16em;
    text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Formulario
   -------------------------------------------------------------------------- */

.bond-login .auth-card .auth-field {
    margin-bottom: 11px;
}

.bond-login .auth-field-icon {
    width: 48px;
    color: #8a7440;
}

.bond-login .auth-card .auth-input,
.bond-login .auth-card .field input[type="text"].auth-input,
.bond-login .auth-card .field input[type="password"].auth-input {
    height: 50px;
    padding: 0 16px 0 48px;
    border: 1px solid #2e281a;
    border-radius: 2px;
    background: #070707;
    color: #f4f1e8;
    font-family: var(--font-body, "IBM Plex Sans", sans-serif);
    font-size: 13px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .02) inset;
}

.bond-login .auth-card .auth-input::placeholder {
    color: #70695b;
    letter-spacing: .04em;
}

.bond-login .auth-card .auth-input:focus {
    border-color: #c9a227;
    box-shadow:
        0 0 0 3px rgba(201, 162, 39, .10),
        0 0 24px rgba(201, 162, 39, .07);
}

.bond-login .auth-card .auth-field:focus-within .auth-field-icon {
    color: #d8b54a;
}

.bond-login .auth-card .auth-input:-webkit-autofill,
.bond-login .auth-card .auth-input:-webkit-autofill:focus {
    -webkit-text-fill-color: #f4f1e8;
    -webkit-box-shadow: 0 0 0 1000px #070707 inset;
    caret-color: #f4f1e8;
}

.bond-login .auth-card .auth-actions {
    margin: 20px 0 0;
}

.bond-login .auth-card .auth-submit {
    min-height: 50px;
    border: 0;
    border-radius: 2px;
    background: #c9a227;
    color: #080808;
    font-family: var(--font-condensed, "Oswald", sans-serif);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    box-shadow:
        0 10px 26px rgba(201, 162, 39, .13),
        0 1px 0 rgba(255, 255, 255, .24) inset;
}

.bond-login .auth-card .auth-submit:hover {
    background: #ddb43a;
    color: #050505;
    filter: none;
    transform: translateY(-1px);
    box-shadow:
        0 14px 32px rgba(201, 162, 39, .2),
        0 1px 0 rgba(255, 255, 255, .24) inset;
}

.bond-login .auth-card .auth-submit:focus-visible {
    outline: 1px solid #f4f1e8;
    outline-offset: 3px;
}

.bond-login .auth-card .auth-submit svg {
    color: #080808;
}

/* --------------------------------------------------------------------------
   Pie
   -------------------------------------------------------------------------- */

.bond-login .auth-foot {
    gap: 8px;
    margin-top: 18px;
}

.bond-login .auth-pill {
    padding: 4px 10px;
    border: 1px solid #2e281a;
    border-radius: 2px;
    background: transparent;
    color: #8f8777;
    font-family: var(--font-condensed, "Oswald", sans-serif);
    font-size: 8px;
    letter-spacing: .16em;
}

.bond-login .auth-pill-dot {
    width: 5px;
    height: 5px;
    background: #c9a227;
    box-shadow: 0 0 0 2px rgba(201, 162, 39, .12), 0 0 8px rgba(201, 162, 39, .5);
}

.bond-login .bond-login-secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 18px 0 0;
    color: #655f52;
    font-family: var(--font-condensed, "Oswald", sans-serif);
    font-size: 7.5px;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.bond-login .bond-login-secure-line {
    width: 26px;
    height: 1px;
    background: #3a321f;
}

.bond-login .auth-support {
    margin: 16px 0 0;
    color: #655f52;
    font-family: var(--font-condensed, "Oswald", sans-serif);
    font-size: 9px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.bond-login .auth-support .support-link {
    color: #b99b42;
}

.bond-login .auth-support .support-link:hover {
    color: #e3c15a;
}

/* Alerta de credenciales: misma línea visual, sin azul. */
.bond-login .alert {
    border-radius: 2px;
    background: rgba(163, 58, 69, .10);
    border: 1px solid rgba(163, 58, 69, .45);
}

@keyframes bond-logo-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 520px) {
    .bond-login .bond-login-shell { padding: 18px 14px; }
    .bond-login .bond-login-card { padding: 22px 20px 20px; }
    .bond-login .bond-logo-stage { width: 142px; height: 142px; margin-bottom: 15px; }
    .bond-login .auth-app-name { font-size: 38px; }
    .bond-login .bond-login-eyebrow { margin-bottom: 15px; }
    .bond-login .bond-login-eyebrow span { width: 28px; }
}

@media (prefers-reduced-motion: reduce) {
    .bond-login .bond-logo-ring { animation: none; }
    .bond-login .auth-card .auth-submit,
    .bond-login .auth-card .auth-submit svg { transition: none; }
}
