/* ------------------------------------------------------------------
   L3V3L Photography — Stage 6 client-gallery access
   Presentation only. The form action, method, field names, hidden
   gallery value, and server-side relay remain unchanged.
   ------------------------------------------------------------------ */

.client-access-page {
    min-height: 100vh;
}

.client-access-page [hidden] {
    display: none !important;
}

.client-access {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: clamp(5rem, 10vh, 8rem) 1.25rem 4rem;
}

.client-access__frame {
    position: relative;
    width: min(100%, 520px);
    padding: clamp(2.25rem, 5vw, 3.5rem);
    background: rgba(31, 32, 41, 0.82);
    border: 1px solid rgba(179, 154, 120, 0.24);
    border-radius: 2px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(18px);
    animation: client-access-in 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.client-access__frame::before,
.client-access__frame::after {
    content: '';
    position: absolute;
    width: 34px;
    height: 34px;
    border: 1px solid var(--l3v3l-bronze);
    pointer-events: none;
}

.client-access__frame::before {
    top: -1px;
    left: -1px;
    border-right: 0;
    border-bottom: 0;
}

.client-access__frame::after {
    right: -1px;
    bottom: -1px;
    border-top: 0;
    border-left: 0;
}

.client-access__eyebrow {
    margin: 0 0 8px;
    color: var(--l3v3l-bronze);
    font-family: 'Dancing Script', cursive;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.client-access__title {
    margin: 0 0 14px;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.2rem, 6vw, 3.4rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 0.95;
    text-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.client-access__lede {
    max-width: 42ch;
    margin: 0 0 24px;
    color: rgba(244, 241, 234, 0.68);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.8;
}

.access-message {
    margin: 0 0 20px;
    padding: 12px 14px;
    border: 1px solid;
    border-radius: 2px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    line-height: 1.65;
}

.access-message--error {
    color: #f0b4a6;
    background: rgba(224, 138, 122, 0.08);
    border-color: rgba(224, 138, 122, 0.32);
}

.access-message--notice {
    color: var(--l3v3l-bronze-bright);
    background: rgba(179, 154, 120, 0.08);
    border-color: rgba(179, 154, 120, 0.28);
}

.access-form {
    display: grid;
    gap: 18px;
}

.access-form__gallery {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
    background: rgba(179, 154, 120, 0.06);
    border: 1px solid rgba(179, 154, 120, 0.18);
    border-radius: 2px;
}

.access-form__gallery-label {
    color: var(--l3v3l-bronze);
    font-family: 'Poppins', sans-serif;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.access-form__gallery-name {
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.access-field {
    display: grid;
    gap: 8px;
}

.access-field label {
    color: var(--l3v3l-bronze);
    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.access-field input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(15, 16, 22, 0.72);
    border: 1px solid rgba(179, 154, 120, 0.28);
    border-radius: 2px;
    color: var(--l3v3l-text);
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 300;
    line-height: 1.4;
    outline: none;
    transition:
        border-color 220ms ease,
        box-shadow 220ms ease,
        background 220ms ease;
}

.access-field input::placeholder {
    color: rgba(244, 241, 234, 0.38);
}

.access-field input:hover {
    border-color: rgba(179, 154, 120, 0.45);
}

.access-field input:focus {
    background: rgba(15, 16, 22, 0.9);
    border-color: var(--l3v3l-bronze);
    box-shadow: 0 0 0 3px rgba(179, 154, 120, 0.18);
}

.access-field input[aria-invalid="true"] {
    border-color: rgba(224, 138, 122, 0.7);
    box-shadow: 0 0 0 3px rgba(224, 138, 122, 0.12);
}

.access-submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 15px 18px;
    background: var(--l3v3l-bronze);
    border: 1px solid var(--l3v3l-bronze);
    border-radius: 2px;
    color: #1f2029;
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        background 220ms ease,
        border-color 220ms ease,
        transform 220ms ease,
        box-shadow 220ms ease;
}

.access-submit:hover {
    background: var(--l3v3l-bronze-bright);
    border-color: var(--l3v3l-bronze-bright);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
    transform: translateY(-1px);
}

.access-submit:focus-visible {
    outline: 2px solid var(--l3v3l-bronze-bright);
    outline-offset: 3px;
}

.access-submit:disabled {
    opacity: 0.65;
    cursor: wait;
    box-shadow: none;
    transform: none;
}

.access-submit__arrow {
    font-size: 18px;
    line-height: 1;
    transition: transform 220ms ease;
}

.access-submit:hover .access-submit__arrow {
    transform: translateX(3px);
}

.access-status {
    min-height: 1.2em;
    margin: 0;
    color: var(--l3v3l-bronze);
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    letter-spacing: 0.08em;
    line-height: 1.5;
}

.access-note {
    margin: 18px 0 0;
    color: rgba(244, 241, 234, 0.55);
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 300;
    line-height: 1.7;
}

.access-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    color: var(--l3v3l-bronze);
    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    border-bottom: 1px solid transparent;
    transition:
        color 220ms ease,
        border-color 220ms ease;
}

.access-back:hover {
    color: var(--l3v3l-bronze-bright);
    border-bottom-color: var(--l3v3l-bronze-bright);
}

.access-back:focus-visible {
    outline: 2px solid var(--l3v3l-bronze);
    outline-offset: 4px;
}

.access-admin {
    position: fixed;
    right: 16px;
    bottom: 12px;
    z-index: 60;
    padding: 6px 10px;
    background: rgba(15, 16, 22, 0.72);
    border: 1px solid rgba(179, 154, 120, 0.18);
    border-radius: 2px;
    color: rgba(244, 241, 234, 0.45);
    font-family: 'Poppins', sans-serif;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    transition:
        color 220ms ease,
        border-color 220ms ease,
        background 220ms ease;
}

.access-admin:hover {
    background: rgba(15, 16, 22, 0.9);
    border-color: rgba(179, 154, 120, 0.4);
    color: var(--l3v3l-bronze);
}

.access-admin:focus-visible {
    outline: 2px solid var(--l3v3l-bronze);
    outline-offset: 3px;
}

@keyframes client-access-in {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media screen and (max-width: 860px) {
    .client-access {
        min-height: auto;
        padding: 2rem 1.25rem 4rem;
    }

    .client-access__frame {
        padding: clamp(2rem, 6vw, 2.75rem);
    }
}

@media screen and (max-width: 580px) {
    .client-access {
        padding: 1.5rem 1rem 4rem;
    }

    .client-access__frame {
        padding: 1.75rem 1.25rem;
    }

    .client-access__title {
        font-size: 2.2rem;
    }

    .client-access__eyebrow {
        font-size: 1.2rem;
    }

    .access-field input {
        font-size: 16px;
    }

    .access-admin {
        right: 10px;
        bottom: 8px;
    }
}

@media screen and (max-width: 380px) {
    .client-access__frame {
        padding: 1.5rem 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .client-access__frame {
        animation: none;
    }

    .client-access-page .access-submit,
    .client-access-page .access-submit__arrow,
    .client-access-page .access-field input,
    .client-access-page .access-back,
    .client-access-page .access-admin {
        transition: none;
    }

    .client-access-page .access-submit:hover,
    .client-access-page .access-submit:hover .access-submit__arrow {
        transform: none;
    }
}
