:root {
    --gj-black: #23251f;
    --gj-ink: #23251f;
    --gj-muted: #62645b;
    --gj-line: #d9dbd0;
    --gj-soft: #f7f7f2;
    --gj-accent: #232323;
    --gj-white: #ffffff;
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    background: var(--gj-black);
    color: var(--gj-black);
    font-family: "GrtskTera", Arial, Helvetica, sans-serif;
    margin: 0;
    min-height: 100svh;
}

.gj-login-page {
    isolation: isolate;
    min-height: 100svh;
    position: relative;
}

.gj-media-panel {
    background-color: var(--gj-black);
    inset: 0;
    overflow: hidden;
    position: fixed;
    z-index: -2;
}

.image-login-bg {
    background-image: url("../images/acceso_summer.jpg");
    background-position: 48% 50%;
    background-repeat: no-repeat;
    background-size: cover;
}

.gj-media-video {
    height: 100%;
    inset: 0;
    object-fit: cover;
    object-position: center;
    position: absolute;
    width: 100%;
    z-index: 0;
}

.gj-media-panel::before {
    background:
        linear-gradient(90deg, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .52) 38%, rgba(0, 0, 0, .22) 66%, rgba(0, 0, 0, .62) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, .24), rgba(0, 0, 0, .72));
    content: "";
    inset: 0;
    position: absolute;
    z-index: 1;
}

.gj-media-overlay {
    display: none;
}

.gj-symbol {
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 50%;
    pointer-events: none;
    position: absolute;
    z-index: 2;
}

.gj-symbol-one {
    height: clamp(260px, 26vw, 430px);
    left: -150px;
    top: 11%;
    width: clamp(260px, 26vw, 430px);
}

.gj-symbol-two {
    background: rgba(255, 255, 255, .11);
    height: clamp(96px, 10vw, 150px);
    left: 23%;
    top: 10%;
    width: clamp(96px, 10vw, 150px);
}

.gj-symbol-three {
    background: rgba(255, 255, 255, .08);
    bottom: 8%;
    height: clamp(130px, 12vw, 190px);
    left: 10%;
    width: clamp(130px, 12vw, 190px);
}

.gj-media-copy {
    bottom: clamp(28px, 5.5vh, 66px);
    color: var(--gj-white);
    left: clamp(34px, 7vw, 112px);
    max-width: min(52vw, 640px);
    position: fixed;
    z-index: 2;
}

.gj-kicker {
    color: var(--gj-accent);
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .18em;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.gj-media-copy h1 {
    color: var(--gj-white);
    font-family: "GrtskTera", Arial, Helvetica, sans-serif;
    font-size: clamp(46px, 6.4vw, 98px);
    font-weight: 600;
    letter-spacing: 0;
    line-height: .9;
    margin: 0;
    text-transform: uppercase;
}

.gj-media-copy p {
    color: rgba(255, 255, 255, .82);
    font-size: clamp(13px, 1.1vw, 16px);
    line-height: 1.65;
    margin: 22px 0 0;
    max-width: 520px;
}

.gj-access-panel {
    align-items: center;
    display: flex;
    justify-content: flex-end;
    min-height: 100svh;
    padding: clamp(22px, 4vh, 44px) clamp(22px, 3.4vw, 56px);
}

.gj-access-inner {
    background: var(--gj-soft);
    border-radius: 12px;
    border: 1px solid var(--gj-line);
    border-top: 1px solid var(--gj-line);
    box-shadow: 0 22px 80px rgba(0, 0, 0, .28);
    display: grid;
    gap: clamp(12px, 1.8vh, 22px);
    max-height: none;
    max-width: 410px;
    overflow: visible;
    padding: clamp(18px, 3vh, 34px);
    width: min(92vw, 410px);
}

.logo-container {
    text-align: center;
}

.logo,
.logo-blanco {
    display: block;
    height: auto;
    margin: 0 auto;
    max-width: clamp(150px, 15vw, 218px);
    width: 100%;
}

.logo-blanco {
    display: none;
}

.gj-access-heading {
    text-align: left;
}

.gj-access-heading h2 {
    color: var(--gj-black);
    font-size: clamp(24px, 2.25vw, 34px);
    font-weight: 400;
    letter-spacing: .01em;
    line-height: 1.15;
    margin: 0;
    text-transform: none;
}

.gj-access-heading p {
    color: var(--gj-muted);
    font-size: 13px;
    line-height: 1.5;
    margin: 12px 0 0;
}

.login-box {
    background: transparent;
    border: 0;
    padding: 0;
    position: relative;
}



.alert-danger {
    background: #fbf1ec;
    border: 1px solid #e8b7a9;
    border-left: 4px solid var(--gj-accent);
    border-radius: 6px;
    color: #2b1b18;
    font-size: 13px;
}

.form-group {
    margin-bottom: 13px;
    position: relative;
    z-index: 1;
}

.form-group label {
    color: var(--gj-black);
    display: block;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0;
    margin-bottom: 7px;
    text-transform: none;
}

.form-control {
    background: rgba(255, 255, 255, .96);
    border: 1px solid var(--gj-line);
    border-radius: 6px;
    color: var(--gj-black);
    font-size: 16px;
    height: 48px;
    padding: 9px 12px;
}

.form-control::placeholder {
    color: var(--gj-muted);
}

.form-control:focus {
    border-color: var(--gj-accent);
    box-shadow: 0 0 0 3px rgba(35, 35, 35, .18);
    outline: none;
}

.btn-primary,
.btn-primary:not(:disabled):not(.disabled).active,
.btn-primary:not(:disabled):not(.disabled):active,
.show > .btn-primary.dropdown-toggle {
    background: var(--gj-accent);
    border: 1px solid var(--gj-accent);
    border-radius: 6px;
    box-shadow: none;
    color: var(--gj-white);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:not(:disabled):not(.disabled):active:focus,
.show > .btn-primary.dropdown-toggle:focus {
    background: #111111;
    border-color: #111111;
    box-shadow: 0 0 0 3px rgba(35, 35, 35, .2);
    color: var(--gj-white);
}

.gj-help-link {
    margin: 0;
    text-align: center;
}

.gj-help-link a {
    color: var(--gj-black);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0;
    text-decoration: none;
    text-transform: none;
}

.gj-help-link a:hover,
.gj-help-link a:focus {
    color: var(--gj-accent);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.gj-access-foot {
    align-items: end;
    color: var(--gj-muted);
    display: flex;
    gap: 16px;
    justify-content: space-between;
}

.by-zingara,
.by-zingara-w {
    display: block;
    height: auto;
    max-width: clamp(118px, 10vw, 138px);
    width: 100%;
}

.by-zingara-w {
    display: none;
}

.gj-access-foot span {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .12em;
    line-height: 1.35;
    max-width: 154px;
    text-align: right;
    text-transform: uppercase;
}

@media (max-width: 1180px) {
    .gj-media-copy {
        max-width: 48vw;
    }

    .gj-media-copy h1 {
        font-size: clamp(42px, 5.5vw, 70px);
    }

    .gj-access-inner {
        max-width: 370px;
        padding: 22px;
    }
}

@media (max-height: 820px) and (min-width: 821px) {
    .gj-access-panel {
        padding-bottom: 28px;
        padding-top: 28px;
    }

    .gj-access-inner {
        gap: 11px;
        max-width: 372px;
        padding: 18px 22px;
    }

    .logo,
    .logo-blanco {
        max-width: 150px;
    }

    .gj-access-heading h2 {
        font-size: 25px;
    }

    .gj-access-heading p {
        font-size: 12px;
        line-height: 1.4;
        margin-top: 8px;
    }

    .login-box {
        padding: 0;
    }

    .form-group {
        margin-bottom: 10px;
    }

    .form-control {
        height: 48px;
    }

    .gj-access-foot {
        margin-top: 0;
    }

    .gj-media-copy {
        bottom: 58px;
        max-width: 46vw;
    }

    .gj-media-copy h1 {
        font-size: clamp(38px, 5vw, 64px);
    }

    .gj-media-copy p {
        display: block;
        font-size: 12px;
        line-height: 1.45;
        margin-top: 10px;
        max-width: 430px;
    }
}

@media (min-width: 821px) and (max-width: 1380px) {
    .gj-access-panel {
        padding-right: clamp(28px, 4vw, 48px);
    }

    .gj-access-inner {
        width: min(31vw, 390px);
    }
}

@media (max-width: 820px) {
    body {
        overflow: auto;
    }

    .gj-login-page {
        min-height: 100svh;
    }

    .image-login-bg {
        background-position: 54% 50%;
    }

    .gj-media-copy {
        display: none;
    }

    .gj-symbol {
        opacity: .22;
    }

    .gj-access-panel {
        justify-content: center;
        min-height: 100svh;
        padding: 20px;
    }

    .gj-access-inner {
        background: rgba(17, 17, 17, .74);
        border-color: rgba(255, 255, 255, .26);
        border-top-color: var(--gj-accent);
        box-shadow: none;
        color: var(--gj-white);
        max-height: none;
        padding: 20px;
        width: min(100%, 430px);
    }

    .logo {
        display: none;
    }

    .logo-blanco {
        display: block;
        max-width: 210px;
    }

    .gj-access-heading h2,
    .form-group label {
        color: var(--gj-white);
    }

    .gj-access-heading p,
    .gj-access-foot {
        color: rgba(255, 255, 255, .78);
    }

    .login-box {
        background: transparent;
        border: 0;
    }


    .btn-primary,
    .btn-primary:not(:disabled):not(.disabled).active,
    .btn-primary:not(:disabled):not(.disabled):active,
    .show > .btn-primary.dropdown-toggle {
        border-color: rgba(255, 255, 255, .26);
        box-shadow:
            inset 0 0 0 1px rgba(255, 255, 255, .08),
            inset 0 1px 0 rgba(255, 255, 255, .08);
    }

    .gj-help-link a {
        color: var(--gj-white);
        display: inline-block;
        padding-bottom: 8px;
        position: relative;
        text-decoration: none;
    }

    .gj-help-link a::after {
        background: rgba(232, 234, 223, .7);
        bottom: 0;
        content: "";
        height: 1px;
        left: 50%;
        position: absolute;
        transform: translateX(-50%);
        width: 34px;
    }

    .gj-help-link a:hover::after,
    .gj-help-link a:focus::after {
        width: 48px;
    }

    .by-zingara {
        display: none;
    }

    .by-zingara-w {
        display: block;
        max-width: 132px;
    }
}

@media (max-width: 420px) {
    .gj-access-panel {
        padding: 14px;
    }

    .gj-access-inner {
        gap: 14px;
        padding: 16px;
    }

    .gj-access-heading h2 {
        font-size: 24px;
    }

    .gj-access-heading p {
        font-size: 12px;
    }

    .form-control {
        height: 48px;
    }

    .gj-access-foot {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .gj-access-foot span {
        max-width: none;
        text-align: left;
    }
}

/* Short laptop viewports: compact branding, never clip form or footer. */
@media (max-height: 650px) and (min-width: 821px) {
    .gj-access-panel { padding-top: 16px; padding-bottom: 16px; }
    .gj-access-inner { gap: 9px; padding-top: 16px; padding-bottom: 16px; }
    .logo, .logo-blanco { max-width: 110px; }
    .gj-access-heading h2 { font-size: 24px; }
}
/* Focus remains distinct from hover; warm paper and neutral accents match the brand. */
.gj-media-copy .gj-kicker { color: #e8eadf; }
.gj-help-link a { min-height: 44px; display: inline-flex; align-items: center; }
.gj-help-link a:focus-visible, .btn-primary:focus-visible {
    outline: 2px solid var(--gj-accent);
    outline-offset: 4px;
}
@media (max-width: 820px) {
    .gj-access-inner { border-top-color: rgba(255,255,255,.26); }
    .gj-kicker { color: #e8eadf; }
    .gj-help-link a { display: inline-flex; padding-bottom: 0; }
    .gj-help-link a::after { display: none; }
    .gj-help-link a:hover, .gj-help-link a:focus { color: #e8eadf; }
    .gj-help-link a:focus-visible, .btn-primary:focus-visible { outline-color: #e8eadf; }
}
