/* ARTHUR login / register — scoped to .gam-auth-page only */

.gam-auth-body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
}

.gam-auth-page {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    box-sizing: border-box;
}

.gam-auth-page__bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: var(--gam-auth-bg-image) no-repeat left center;
    background-size: cover;
    pointer-events: none;
}

.gam-auth-page__decoration {
    position: fixed;
    z-index: 0;
    width: 64%;
    height: 140%;
    border-radius: 50%;
    background: var(--gam-auth-dot-texture) repeat left top #161b28;
    top: -20%;
    right: -32%;
    pointer-events: none;
}

.theme-light .gam-auth-page__decoration {
    background-color: #fff;
}

.gam-auth-page__shell {
    position: relative;
    z-index: 1;
    width: min(1120px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    gap: clamp(32px, 6vw, 80px);
    align-items: center;
}

.gam-auth-page__hero {
    color: #fff;
    text-align: center;
}

.gam-auth-page__logo {
    display: flex;
    justify-content: center;
}

.gam-auth-page__logo .icon-logo-vikinger {
    width: 56px;
    height: 72px;
    fill: #fff;
}

.gam-auth-page__pretitle {
    margin: 28px 0 0;
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.95;
}

.gam-auth-page__title {
    margin: 4px 0 0;
    font-family: "Titillium Web", sans-serif;
    font-size: clamp(2.75rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.gam-auth-page__tagline {
    max-width: 420px;
    margin: 24px auto 0;
    font-size: 1.0625rem;
    line-height: 1.45;
    font-weight: 500;
    opacity: 0.92;
}

.gam-auth-page__tabs {
    display: inline-flex;
    margin-top: 40px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.gam-auth-page__tab {
    width: auto !important;
    min-width: 148px;
    height: 52px;
    padding: 0 28px;
    border: none;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.92);
    color: #1d2333;
    font-size: 1rem;
    font-weight: 700;
    line-height: 52px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    box-shadow: none;
}

.gam-auth-page__tab.is-active {
    background: #1d2333;
    color: #fff;
    cursor: default;
}

.gam-auth-page__forms {
    width: 100%;
}

.gam-auth-page__card {
    position: relative;
    width: 100%;
    padding: 40px 36px 36px;
    border-radius: 12px;
    background: #1d2333;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.22);
    box-sizing: border-box;
    overflow: visible;
}

.gam-auth-page__rocket {
    position: absolute;
    top: -52px;
    left: -72px;
    width: auto;
    max-width: 132px;
    height: auto;
    pointer-events: none;
}

.theme-light .gam-auth-page__card {
    background: #1d2333;
}

.gam-auth-page__panel {
    display: none;
}

.gam-auth-page__panel.is-active {
    display: block;
}

.gam-auth-page__card-title {
    margin: 0 0 28px;
    color: #fff;
    font-size: 1.375rem;
    font-weight: 700;
    text-align: center;
}

.gam-auth-page__form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.gam-auth-page__field label {
    display: block;
    margin-bottom: 8px;
    color: #9aa4bf;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.2;
    position: static;
    pointer-events: auto;
}

.gam-auth-page__field input {
    display: block;
    width: 100%;
    height: 48px;
    padding: 0 18px;
    border: 1px solid #3f485f;
    border-radius: 12px;
    background: #21283b;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.gam-auth-page__field input:focus {
    outline: none;
    border-color: #40d04f;
    box-shadow: 0 0 0 2px rgba(64, 208, 79, 0.2);
}

.gam-auth-page__field input::placeholder {
    color: #616a82;
    opacity: 1;
}

.gam-auth-page__checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
    cursor: pointer;
    user-select: none;
}

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

.gam-auth-page__checkbox span:last-child {
    color: #9aa4bf;
    font-size: 0.875rem;
    font-weight: 600;
}

.gam-auth-page__checkbox-box {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 2px solid #3f485f;
    background: #21283b;
    position: relative;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.gam-auth-page__checkbox-box::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 11px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.15s ease;
}

.gam-auth-page__checkbox input:checked + .gam-auth-page__checkbox-box {
    background: #40d04f;
    border-color: #40d04f;
}

.gam-auth-page__checkbox input:checked + .gam-auth-page__checkbox-box::after {
    transform: rotate(45deg) scale(1);
}

.gam-auth-page__submit {
    width: 100% !important;
    margin-top: 8px;
    display: block;
}

.gam-auth-page__hint {
    margin: 20px 0 0;
    color: #9aa4bf;
    font-size: 0.8125rem;
    line-height: 1.45;
    text-align: center;
}

@media (max-width: 1500px) {
    .gam-auth-page__decoration {
        display: none;
    }
}

@media (max-width: 960px) {
    .gam-auth-page {
        align-items: flex-start;
        padding-top: 40px;
        padding-bottom: 56px;
    }

    .gam-auth-page__shell {
        grid-template-columns: 1fr;
        gap: 32px;
        max-width: 440px;
    }

    .gam-auth-page__tagline {
        display: none;
    }

    .gam-auth-page__tabs {
        margin-top: 28px;
    }
}

@media (max-width: 1365px) {
    .gam-auth-page__rocket {
        display: none;
    }
}

@media (max-width: 480px) {
    .gam-auth-page__card {
        padding: 32px 22px 28px;
    }

    .gam-auth-page__tab {
        min-width: 0;
        flex: 1;
        padding: 0 16px;
    }

    .gam-auth-page__tabs {
        display: flex;
        width: 100%;
    }
}
