:root {
    --ip-navy: #112E40;
    --ip-deep: #071722;
    --ip-cyan: #3FB5E6;
    --ip-white: #FFFFFF;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    overflow-x: hidden;
    font-family: "Plus Jakarta Sans", Arial, sans-serif;
    color: var(--ip-white);
    background:
        linear-gradient(90deg, rgba(7, 23, 34, 0.94) 0%, rgba(17, 46, 64, 0.74) 54%, rgba(7, 23, 34, 0.38) 100%),
        url("assets/hero/hero-piscina-costa-del-sol.png") center/cover;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(7, 23, 34, 0.08), rgba(7, 23, 34, 0.46));
}

.access-shell {
    position: relative;
    z-index: 1;
    width: min(1160px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 430px;
    gap: clamp(56px, 8vw, 120px);
    align-items: center;
}

.access-copy {
    text-align: left;
}

.access-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: clamp(48px, 8vw, 96px);
}

.access-brand img {
    width: 42px;
    height: auto;
}

.access-brand span {
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    font-weight: 600;
}

.access-kicker {
    margin: 0 0 16px;
    color: var(--ip-cyan);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.access-kicker::after {
    content: "";
    display: block;
    width: 72px;
    height: 1px;
    margin-top: 18px;
    background: linear-gradient(90deg, var(--ip-cyan), rgba(63, 181, 230, 0));
}

.access-copy h1 {
    margin: 0;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(4rem, 7.2vw, 6.8rem);
    font-weight: 600;
    line-height: 0.96;
    letter-spacing: 0;
}

.access-copy p:last-child {
    max-width: 560px;
    margin: 28px 0 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: clamp(1rem, 1.6vw, 1.16rem);
    line-height: 1.7;
}

.access-panel {
    width: 100%;
    padding: 36px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
        rgba(7, 23, 34, 0.82);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.36);
    backdrop-filter: blur(20px);
}

.access-panel h2 {
    margin: 0;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.12;
}

.access-panel p {
    margin: 10px 0 28px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.55;
}

.access-error {
    margin: 0 0 18px;
    padding: 12px 14px;
    border: 1px solid rgba(248, 113, 113, 0.46);
    border-radius: 8px;
    color: #FEE2E2;
    background: rgba(248, 113, 113, 0.14);
    font-size: 0.92rem;
}

.access-field {
    display: block;
    margin-bottom: 16px;
}

.access-field span {
    display: block;
    margin-bottom: 7px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.access-field input {
    width: 100%;
    min-height: 52px;
    padding: 0 15px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 8px;
    color: var(--ip-white);
    background: rgba(255, 255, 255, 0.075);
    font: inherit;
    outline: none;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.access-field input:focus {
    border-color: var(--ip-cyan);
    background: rgba(255, 255, 255, 0.11);
    box-shadow: 0 0 0 4px rgba(63, 181, 230, 0.14);
}

.access-submit {
    width: 100%;
    min-height: 52px;
    margin-top: 8px;
    border: 1px solid var(--ip-cyan);
    border-radius: 999px;
    color: var(--ip-navy);
    background: linear-gradient(180deg, #56C5F1, var(--ip-cyan));
    font: inherit;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 14px 34px rgba(63, 181, 230, 0.2);
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.access-submit:hover {
    border-color: var(--ip-white);
    background: var(--ip-white);
    box-shadow: 0 16px 38px rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.access-note {
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.78rem;
    line-height: 1.5;
}

@media (max-width: 760px) {
    body {
        padding: 0;
        background:
            linear-gradient(180deg, rgba(7, 23, 34, 0.62), rgba(7, 23, 34, 0.92)),
            url("assets/hero/hero-piscina-costa-del-sol.png") 58% center/cover;
    }

    .access-shell {
        position: fixed;
        top: 50%;
        left: 50%;
        width: min(280px, calc(100vw - 36px));
        display: flex;
        flex-direction: column;
        gap: 32px;
        align-items: stretch;
        max-height: calc(100dvh - 28px);
        overflow-y: auto;
        transform: translate(-50%, -50%);
    }

    .access-copy {
        text-align: center;
    }

    .access-brand {
        justify-content: center;
        gap: 9px;
        margin-bottom: 14px;
    }

    .access-brand img {
        width: 31px;
    }

    .access-brand span {
        font-size: 1.45rem;
    }

    .access-kicker {
        margin-bottom: 10px;
        font-size: 0.65rem;
        letter-spacing: 0.16em;
    }

    .access-kicker::after {
        display: none;
    }

    .access-copy h1 {
        font-size: 1.78rem;
        line-height: 1;
    }

    .access-copy p:last-child,
    .access-note {
        display: none;
    }

    .access-panel {
        margin-top: 4px;
        padding: 18px;
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.018)),
            rgba(7, 23, 34, 0.86);
    }

    .access-panel h2 {
        display: none;
    }

    .access-panel p {
        display: none;
    }

    .access-field {
        margin-bottom: 14px;
    }

    .access-field span {
        margin-bottom: 6px;
        font-size: 0.68rem;
    }

    .access-field input,
    .access-submit {
        min-height: 47px;
    }

    .access-field input {
        padding: 0 14px;
    }

    .access-submit {
        margin-top: 8px;
        font-size: 0.82rem;
        letter-spacing: 0.14em;
    }
}

@media (max-width: 380px) {
    .access-shell {
        width: min(280px, calc(100vw - 28px));
        gap: 24px;
    }

    .access-brand span {
        font-size: 1.32rem;
    }

    .access-copy h1 {
        font-size: 1.74rem;
    }

    .access-panel {
        padding: 17px;
    }
}

@media (max-width: 760px) and (max-height: 620px) {
    .access-shell {
        width: min(280px, calc(100vw - 28px));
        gap: 18px;
    }

    .access-brand {
        margin-bottom: 6px;
    }

    .access-kicker,
    .access-panel p {
        display: none;
    }

    .access-copy h1 {
        font-size: 1.58rem;
    }

    .access-panel {
        padding: 15px;
    }

    .access-field input,
    .access-submit {
        min-height: 43px;
    }
}
