:root {
    --register-page: #020913;
    --register-header: rgba(3, 11, 20, 0.97);
    --register-panel: rgba(6, 18, 30, 0.96);
    --register-panel-soft: rgba(9, 25, 40, 0.92);
    --register-input: rgba(3, 14, 25, 0.92);
    --register-border: #1e3a50;
    --register-border-bright: #2d6388;
    --register-text: #ffffff;
    --register-muted: #9fb3c5;
    --register-blue: #2f9cff;
    --register-green: #39db74;
    --register-purple: #8e5cff;
    --register-gold: #ffb800;
    --register-gold-bright: #ffc62e;
    --register-error: #ff5664;
    --register-shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--register-page);
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    background: radial-gradient( circle at 75% 42%, rgba(24, 103, 160, 0.08), transparent 34% ), var(--register-page);
    color: var(--register-text);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    color: inherit;
}

.registration-page {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

.registration-header {
    position: relative;
    z-index: 10;
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0 38px;
    border-bottom: 1px solid rgba(85, 127, 159, 0.28);
    background: var(--register-header);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
}

.registration-brand {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: 1.4px;
    line-height: 1;
    text-transform: uppercase;
}

    .registration-brand::after {
        position: absolute;
        right: -1px;
        bottom: -8px;
        width: 46%;
        height: 2px;
        background: var(--register-gold);
        box-shadow: 0 0 12px rgba(255, 184, 0, 0.45);
        content: "";
    }

.brand-marker {
    color: #ffffff;
}

.brand-north {
    color: #e4aa31;
}

.registration-header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--register-muted);
    font-size: 14px;
}

.header-login-button {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border: 1px solid rgba(255, 184, 0, 0.72);
    border-radius: 7px;
    color: var(--register-gold-bright);
    font-weight: 800;
    transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

    .header-login-button:hover {
        border-color: var(--register-gold-bright);
        background: rgba(255, 184, 0, 0.11);
        color: #ffffff;
        transform: translateY(-1px);
    }

.registration-main {
    display: grid;
    flex: 1;
    grid-template-columns: minmax(420px, 46%) minmax(600px, 54%);
}

.registration-introduction {
    position: relative;
    isolation: isolate;
    display: flex;
    min-height: 790px;
    align-items: center;
    overflow: hidden;
    padding: 56px clamp(46px, 6vw, 108px);
}

    .registration-introduction::before {
        position: absolute;
        z-index: -3;
        inset: 0;
        background-image: linear-gradient( 90deg, rgba(2, 9, 19, 0.84) 0%, rgba(2, 9, 19, 0.70) 38%, rgba(2, 9, 19, 0.27) 72%, rgba(2, 9, 19, 0.18) 100% ), linear-gradient( 180deg, rgba(2, 9, 19, 0.26) 0%, rgba(2, 9, 19, 0.06) 42%, rgba(2, 9, 19, 0.92) 100% ), url("../images/register-truck-background.png");
        background-position: 63% center;
        background-size: cover;
        content: "";
        transform: scale(1.01);
    }

    .registration-introduction::after {
        position: absolute;
        z-index: -2;
        top: 0;
        right: -1px;
        bottom: 0;
        width: 220px;
        background: linear-gradient( 90deg, transparent 0%, rgba(2, 9, 19, 0.58) 66%, var(--register-page) 100% );
        content: "";
        pointer-events: none;
    }

.introduction-content {
    width: min(100%, 600px);
}

.introduction-badge {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    gap: 9px;
    margin-bottom: 22px;
    padding: 0 13px;
    border: 1px solid rgba(255, 184, 0, 0.52);
    border-radius: 999px;
    background: rgba(3, 12, 21, 0.68);
    color: var(--register-gold-bright);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.2px;
    backdrop-filter: blur(7px);
}

.registration-introduction h1 {
    max-width: 570px;
    margin: 0;
    font-size: clamp(40px, 3.4vw, 66px);
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.04;
    text-wrap: balance;
}

    .registration-introduction h1 span {
        display: block;
        color: var(--register-gold-bright);
    }

.introduction-copy {
    max-width: 560px;
    margin: 22px 0 34px;
    color: #d4dfe8;
    font-size: 17px;
    line-height: 1.65;
}

.registration-benefits {
    display: grid;
    max-width: 560px;
    gap: 16px;
}

.registration-benefit {
    display: grid;
    grid-template-columns: 56px 1fr;
    align-items: center;
    gap: 15px;
    padding: 8px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.benefit-icon {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 22px;
}

    .benefit-icon.blue {
        background: rgba(47, 156, 255, 0.14);
        color: var(--register-blue);
    }

    .benefit-icon.green {
        background: rgba(57, 219, 116, 0.14);
        color: var(--register-green);
    }

    .benefit-icon.purple {
        background: rgba(142, 92, 255, 0.14);
        color: #b17bff;
    }

.registration-benefit h2 {
    margin: 0 0 5px;
    color: #ffffff;
    font-size: 16px;
    line-height: 1.25;
}

.registration-benefit p {
    margin: 0;
    color: #b9c9d7;
    font-size: 13px;
    line-height: 1.45;
}

.core-access-note {
    display: flex;
    max-width: 560px;
    align-items: center;
    gap: 14px;
    margin-top: 24px;
    padding: 12px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #d5e1e9;
    backdrop-filter: none;
}

    .core-access-note > i {
        color: var(--register-green);
        font-size: 25px;
    }

    .core-access-note div {
        display: grid;
        gap: 3px;
    }

    .core-access-note strong {
        color: #ffffff;
        font-size: 14px;
    }

    .core-access-note span {
        color: #b7c8d6;
        font-size: 12px;
        line-height: 1.4;
    }

.registration-panel {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    padding: 42px clamp(30px, 4.5vw, 86px);
    background: linear-gradient( 90deg, rgba(2, 9, 19, 0.96), rgba(3, 12, 22, 0.99) );
}

.registration-card {
    width: min(100%, 760px);
    padding: 30px 32px 25px;
    border: 1px solid var(--register-border);
    border-radius: 13px;
    background: linear-gradient( 150deg, rgba(8, 24, 39, 0.98), rgba(4, 15, 26, 0.98) );
    box-shadow: var(--register-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.registration-card-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 24px;
    text-align: left;
}

.registration-card-icon {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(255, 184, 0, 0.62);
    border-radius: 50%;
    background: rgba(255, 184, 0, 0.10);
    color: var(--register-gold-bright);
    font-size: 19px;
}

.registration-card-heading h2 {
    margin: 0 0 5px;
    color: #ffffff;
    font-size: clamp(23px, 2vw, 29px);
    line-height: 1.2;
}

.registration-card-heading p {
    margin: 0;
    color: var(--register-muted);
    font-size: 13px;
    line-height: 1.4;
}

.registration-providers {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.provider-button {
    display: inline-flex;
    min-height: 58px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 18px;
    border-radius: 8px;
    background: rgba(7, 20, 33, 0.94);
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

    .provider-button i {
        font-size: 25px;
    }

.steam-provider {
    border: 1px solid #387aae;
}

    .steam-provider i {
        color: #ffffff;
    }

    .steam-provider:hover {
        border-color: #68b7ef;
        background: rgba(23, 76, 112, 0.27);
        box-shadow: 0 0 22px rgba(59, 151, 220, 0.12);
        transform: translateY(-1px);
    }

.discord-provider {
    border: 1px solid #655de3;
}

    .discord-provider i {
        color: #7c79ff;
    }

    .discord-provider:hover {
        border-color: #8b86ff;
        background: rgba(88, 79, 190, 0.18);
        box-shadow: 0 0 22px rgba(105, 91, 235, 0.14);
        transform: translateY(-1px);
    }

.registration-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 20px 0;
    color: #849bad;
    font-size: 12px;
    white-space: nowrap;
}

    .registration-divider::before,
    .registration-divider::after {
        height: 1px;
        flex: 1;
        background: #294257;
        content: "";
    }

.registration-message {
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 86, 100, 0.65);
    border-radius: 7px;
    background: rgba(255, 86, 100, 0.09);
    color: #ffadb4;
    font-size: 13px;
    line-height: 1.45;
}

.registration-form {
    display: grid;
    gap: 15px;
}

.form-field {
    display: grid;
    min-width: 0;
    gap: 7px;
}

    .form-field label {
        color: #edf5fa;
        font-size: 13px;
        font-weight: 800;
    }

    .form-field small {
        color: #7892a6;
        font-size: 10px;
        line-height: 1.4;
    }

.input-wrapper {
    position: relative;
    display: flex;
    min-width: 0;
    align-items: center;
}

    .input-wrapper > i:first-child {
        position: absolute;
        z-index: 2;
        left: 15px;
        color: #789ab3;
        font-size: 14px;
        pointer-events: none;
    }

    .input-wrapper input {
        width: 100%;
        min-width: 0;
        height: 46px;
        padding: 0 45px 0 43px;
        border: 1px solid #25465e;
        border-radius: 7px;
        outline: none;
        background: var(--register-input);
        color: #ffffff;
        font-size: 13px;
        transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
    }

        .input-wrapper input::placeholder {
            color: #668096;
        }

        .input-wrapper input:hover {
            border-color: #35647f;
        }

        .input-wrapper input:focus {
            border-color: var(--register-blue);
            background: rgba(5, 21, 35, 0.98);
            box-shadow: 0 0 0 3px rgba(47, 156, 255, 0.11), 0 0 20px rgba(47, 156, 255, 0.07);
        }

.password-visibility-button {
    position: absolute;
    z-index: 3;
    right: 7px;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #7695aa;
    cursor: pointer;
}

    .password-visibility-button:hover {
        background: rgba(47, 156, 255, 0.10);
        color: #ffffff;
    }

.password-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.password-requirements {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 14px;
    padding: 11px 13px;
    border: 1px solid rgba(50, 86, 111, 0.56);
    border-radius: 7px;
    background: rgba(3, 13, 23, 0.62);
    color: #92a9ba;
    font-size: 10px;
}

    .password-requirements span {
        display: inline-flex;
        align-items: center;
        gap: 5px;
    }

    .password-requirements i {
        color: var(--register-green);
        font-size: 10px;
    }

    .password-requirements span:last-child i {
        color: var(--register-blue);
    }

.agreement-section {
    display: grid;
    gap: 10px;
    margin-top: 2px;
}

.agreement-option {
    position: relative;
    display: grid;
    grid-template-columns: 19px 1fr;
    align-items: start;
    gap: 10px;
    color: #a9bdcb;
    font-size: 11px;
    line-height: 1.55;
    cursor: pointer;
}

    .agreement-option input {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
    }

.custom-checkbox {
    display: grid;
    width: 18px;
    height: 18px;
    place-items: center;
    border: 1px solid #5d7487;
    border-radius: 4px;
    background: rgba(2, 11, 19, 0.88);
    color: transparent;
    font-size: 10px;
    transition: border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.agreement-option:hover .custom-checkbox {
    border-color: var(--register-blue);
}

.agreement-option input:focus-visible + .custom-checkbox {
    border-color: var(--register-blue);
    box-shadow: 0 0 0 3px rgba(47, 156, 255, 0.13);
}

.agreement-option input:checked + .custom-checkbox {
    border-color: var(--register-blue);
    background: var(--register-blue);
    color: #ffffff;
}

.agreement-option a {
    color: var(--register-gold-bright);
    font-weight: 700;
}

    .agreement-option a:hover {
        text-decoration: underline;
    }

.registration-submit-button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 11px;
    margin-top: 3px;
    border: 1px solid #ffd053;
    border-radius: 7px;
    background: linear-gradient( 90deg, #ffb800, #efa400 );
    box-shadow: 0 10px 26px rgba(255, 184, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.30);
    color: #111820;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    transition: filter 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

    .registration-submit-button:hover {
        filter: brightness(1.08);
        box-shadow: 0 13px 32px rgba(255, 184, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.34);
        transform: translateY(-1px);
    }

    .registration-submit-button:active {
        transform: translateY(0);
    }

    .registration-submit-button:disabled {
        cursor: wait;
        filter: grayscale(0.35);
        opacity: 0.72;
        transform: none;
    }

.registration-security-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 14px;
    padding: 10px 12px;
    border: 1px solid rgba(57, 219, 116, 0.25);
    border-radius: 7px;
    background: rgba(57, 219, 116, 0.055);
    color: #8eaa9a;
    text-align: center;
}

    .registration-security-note i {
        color: var(--register-green);
        font-size: 14px;
    }

    .registration-security-note p {
        margin: 0;
        font-size: 10px;
        line-height: 1.45;
    }

.registration-sign-in {
    margin-top: 15px;
    color: #8099ac;
    font-size: 12px;
    text-align: center;
}

    .registration-sign-in a {
        margin-left: 4px;
        color: var(--register-gold-bright);
        font-weight: 800;
    }

        .registration-sign-in a:hover {
            text-decoration: underline;
        }

.registration-footer {
    position: relative;
    z-index: 5;
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: center;
    gap: clamp(30px, 8vw, 130px);
    padding: 12px 34px;
    border-top: 1px solid rgba(44, 78, 104, 0.46);
    background: #020914;
}

.caps-mark {
    display: flex;
    align-items: center;
    gap: 11px;
}

    .caps-mark > i {
        display: grid;
        width: 38px;
        height: 38px;
        place-items: center;
        border: 1px solid #168ce6;
        border-radius: 50%;
        background: rgba(17, 96, 156, 0.10);
        color: #37a8ff;
        font-size: 17px;
    }

    .caps-mark div {
        display: grid;
        gap: 3px;
    }

    .caps-mark strong {
        color: #ffffff;
        font-size: 12px;
    }

        .caps-mark strong span {
            color: var(--register-gold-bright);
        }

    .caps-mark small {
        color: #7790a4;
        font-size: 9px;
        font-style: italic;
    }

.registration-footer nav {
    display: flex;
    align-items: center;
    gap: 22px;
    color: #8ea5b6;
    font-size: 10px;
}

    .registration-footer nav a:hover {
        color: var(--register-gold-bright);
    }

@media (max-width: 1250px) {
    .registration-main {
        grid-template-columns: minmax(360px, 42%) minmax(560px, 58%);
    }

    .registration-introduction {
        padding-right: 42px;
        padding-left: 42px;
    }

        .registration-introduction::before {
            background-position: 66% center;
        }

        .registration-introduction h1 {
            font-size: 43px;
        }

    .introduction-copy {
        font-size: 15px;
    }

    .registration-benefit {
        grid-template-columns: 48px 1fr;
    }

    .benefit-icon {
        width: 45px;
        height: 45px;
        font-size: 19px;
    }

    .registration-panel {
        padding-right: 30px;
        padding-left: 30px;
    }
}

@media (max-width: 980px) {
    .registration-header {
        padding-right: 22px;
        padding-left: 22px;
    }

    .registration-main {
        display: block;
    }

    .registration-introduction {
        min-height: 520px;
        padding: 70px 36px;
    }

        .registration-introduction::before {
            background-position: 65% center;
        }

        .registration-introduction::after {
            top: auto;
            right: 0;
            bottom: -1px;
            left: 0;
            width: auto;
            height: 150px;
            background: linear-gradient( 180deg, transparent, var(--register-page) );
        }

    .introduction-content {
        width: min(100%, 650px);
    }

    .registration-benefits {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        max-width: none;
    }

    .registration-benefit {
        display: block;
    }

    .benefit-icon {
        margin-bottom: 12px;
    }

    .core-access-note {
        max-width: none;
    }

    .registration-panel {
        padding: 42px 24px 56px;
    }
}

@media (max-width: 720px) {
    .registration-header {
        min-height: 66px;
    }

    .registration-brand {
        font-size: 22px;
    }

    .registration-header-actions > span {
        display: none;
    }

    .header-login-button {
        min-height: 36px;
        padding: 0 15px;
        font-size: 12px;
    }

    .registration-introduction {
        min-height: 580px;
        padding: 56px 20px;
    }

        .registration-introduction h1 {
            font-size: 38px;
        }

    .introduction-copy {
        font-size: 14px;
    }

    .registration-benefits {
        grid-template-columns: 1fr;
    }

    .registration-benefit {
        display: grid;
    }

    .registration-card {
        padding: 25px 20px 22px;
    }

    .registration-card-heading {
        justify-content: flex-start;
    }

    .registration-card-icon {
        display: none;
    }

    .registration-providers,
    .password-grid {
        grid-template-columns: 1fr;
    }

    .provider-button {
        min-height: 52px;
    }

    .registration-footer {
        flex-direction: column;
        gap: 14px;
        padding-top: 18px;
        padding-bottom: 18px;
    }
}

@media (max-width: 440px) {
    .registration-header {
        padding-right: 14px;
        padding-left: 14px;
    }

    .registration-brand {
        gap: 5px;
        font-size: 18px;
        letter-spacing: 0.7px;
    }

    .registration-introduction {
        padding-right: 15px;
        padding-left: 15px;
    }

        .registration-introduction h1 {
            font-size: 33px;
        }

    .registration-panel {
        padding-right: 12px;
        padding-left: 12px;
    }

    .registration-card {
        padding-right: 15px;
        padding-left: 15px;
    }

    .registration-card-heading h2 {
        font-size: 21px;
    }

    .registration-footer nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/* Official Marker North registration logo */

.registration-brand::after {
    display: none;
}

.registration-brand img {
    display: block;
    width: min(290px, 28vw);
    max-height: 54px;
    object-fit: contain;
    object-position: left center;
}

@media (max-width: 720px) {
    .registration-brand img {
        width: min(215px, 52vw);
        max-height: 44px;
    }
}

.registration-message.success {
    color: #35e77a;
    background: rgba(20, 92, 57, 0.18);
    border-color: rgba(53, 231, 122, 0.55);
}

.registration-message.error {
    color: #ff7b88;
    background: rgba(112, 25, 42, 0.18);
    border-color: rgba(255, 70, 93, 0.65);
}
