/* ==== Auth modal (matches original design: bg image + logo + text) ==== */
.auth-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(0.6rem);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.auth-modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.auth-modal {
    position: relative;
    width: 100%;
    max-width: 56rem;
    box-sizing: border-box;
    overflow: hidden;
    border-radius: 0.4rem;
    background: #1c1b21;
    box-shadow: 0 2.5rem 7rem rgba(0, 0, 0, 0.7);
    transform: translateY(1.5rem) scale(0.98);
    transition: transform 0.25s ease;
    font-family: var(--font-sofia-sans, 'Sofia Sans', system-ui, sans-serif);
}

.auth-modal-overlay.is-open .auth-modal {
    transform: translateY(0) scale(1);
}

/* Top background image that fades into the modal body */
.auth-modal__hero {
    position: relative;
    padding: 3.4rem 3.4rem 0;
    text-align: center;
}

.auth-modal__hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("../assets/img/bg-cache.webp");
    background-size: cover;
    background-position: center 35%;
    z-index: 0;
}

/* dark gradient so the photo fades down into the solid body */
.auth-modal__hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg,
        rgba(28, 27, 33, 0.35) 0%,
        rgba(28, 27, 33, 0.55) 45%,
        rgba(28, 27, 33, 0.9) 80%,
        #1c1b21 100%);
}

.auth-modal__logo,
.auth-modal__title {
    position: relative;
    z-index: 2;
}

.auth-modal__logo {
    width: 11rem;
    height: 11rem;
    margin: 0 auto 1.6rem;
    object-fit: contain;
    filter: drop-shadow(0 0.4rem 1.2rem rgba(0, 0, 0, 0.5));
}

.auth-modal__title {
    margin: 0;
    padding-bottom: 2.4rem;
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #fff;
    text-transform: uppercase;
    text-align: center;
}

/* Body (below the hero) */
.auth-modal__body {
    position: relative;
    z-index: 2;
    padding: 0 3.4rem 3.4rem;
}

.auth-modal__description {
    margin: 0 0 3rem;
    font-size: 1.6rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
}

.auth-modal__checks {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    margin-bottom: 2.8rem;
}

.auth-check {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    font-size: 1.6rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    user-select: none;
}

.auth-check input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.auth-check__box {
    flex-shrink: 0;
    width: 2.4rem;
    height: 2.4rem;
    border: 0.15rem solid rgba(255, 255, 255, 0.25);
    border-radius: 0.3rem;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.auth-check__box::after {
    content: "";
    width: 0.6rem;
    height: 1.1rem;
    border: solid #1c1b21;
    border-width: 0 0.25rem 0.25rem 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.15s ease;
    margin-bottom: 0.2rem;
}

.auth-check input:checked + .auth-check__box {
    background: #44c987;
    border-color: #44c987;
}

.auth-check input:checked + .auth-check__box::after {
    transform: rotate(45deg) scale(1);
}

.auth-check input:focus-visible + .auth-check__box {
    box-shadow: 0 0 0 0.3rem rgba(68, 201, 135, 0.35);
}

.auth-check a {
    color: #44c987;
    text-decoration: none;
}

.auth-check a:hover {
    text-decoration: underline;
}

/* Close button */
.auth-modal__close {
    position: absolute;
    top: 1.6rem;
    right: 1.6rem;
    z-index: 3;
    width: 3.4rem;
    height: 3.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 2.6rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.auth-modal__close:hover {
    opacity: 1;
}

/* Steam submit button — full width, grey (matches original) */
.d67hg56io98 {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 5.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    padding: 0 2rem;
    overflow: hidden;
    border: none;
    border-radius: 0.3rem;
    background: linear-gradient(180deg, #6a6a72 0%, #4c4c53 100%);
    color: rgba(255, 255, 255, 0.75);
    font-family: var(--font-sofia-sans, 'Sofia Sans', system-ui, sans-serif);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    cursor: not-allowed;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.d67hg56io98 img {
    width: 2.4rem;
    height: 2.4rem;
    flex-shrink: 0;
    filter: grayscale(1) brightness(1.6) opacity(0.75);
    transition: filter 0.2s ease;
}

/* Enabled state (both checkboxes ticked) — turns green like Steam CTA */
.d67hg56io98:not(:disabled) {
    background: #13432c;
    border: 0.1rem solid #44c987;
    color: #44c987;
    box-shadow: inset 0 0 1.66rem rgba(68, 201, 135, 0.45);
    cursor: pointer;
}

.d67hg56io98:not(:disabled):hover {
    background: #1d5a3a;
    box-shadow: inset 0 0 1.66rem rgba(68, 201, 135, 0.65);
}

.d67hg56io98:not(:disabled) img {
    filter: none;
}

@media (max-width: 992px) {
    .auth-modal {
        max-width: 42rem;
    }
    .auth-modal__hero {
        padding: 2.6rem 2.4rem 0;
    }
    .auth-modal__body {
        padding: 0 2.4rem 2.6rem;
    }
    .auth-modal__logo {
        width: 9rem;
        height: 9rem;
    }
    .auth-modal__title {
        font-size: 2.4rem;
    }
    .auth-modal__description {
        font-size: 1.5rem;
    }
}
