:root {
    --auth-navy-950: #071426;
    --auth-navy-900: #0a1b33;
    --auth-blue-700: #005ec7;
    --auth-blue-600: #006ae0;
    --auth-blue-100: #e7f2ff;
    --auth-blue-050: #f3f8fe;
    --auth-action: #3b18d4;
    --auth-action-hover: #2d10ad;
    --auth-action-focus: rgba(59, 24, 212, 0.25);
    --auth-ink: #101828;
    --auth-text: #344054;
    --auth-muted: #667085;
    --auth-line: #d9e2ec;
    --auth-line-strong: #c5d1dd;
    --auth-canvas: #fff;
    --auth-success: #16794a;
    --auth-success-bg: #e8f6ef;
    --auth-danger: #b42318;
    --auth-danger-bg: #fff0ef;
    --auth-focus: rgba(0, 106, 224, 0.24);
}

html {
    min-height: 100%;
    background: var(--auth-canvas);
}

body.member-auth {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    background: var(--auth-canvas);
    color: var(--auth-text);
    font-family: "SegoeUI", "Segoe UI", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;
}

.member-auth *,
.member-auth *::before,
.member-auth *::after {
    box-sizing: border-box;
}

.member-auth a {
    color: var(--auth-blue-700);
    text-decoration: none;
}

.member-auth a:hover,
.member-auth a:focus {
    color: var(--auth-blue-600);
    text-decoration: none;
}

.member-auth :focus-visible {
    outline: 3px solid var(--auth-focus);
    outline-offset: 2px;
}

.member-auth section {
    padding-top: 0;
}

.member-auth .auth-topbar {
    position: relative;
    z-index: 20;
    height: 68px;
    padding: 0;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--auth-navy-950);
    font-family: inherit;
}

.auth-topbar__inner {
    width: min(100% - 48px, 1440px);
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.auth-brand {
    min-width: 0;
    display: flex;
    align-items: center;
    color: #fff !important;
}

.auth-brand img {
    width: 127px;
    height: 28px;
    flex: 0 0 127px;
    display: block;
}

.auth-brand__section {
    margin-left: 14px;
    padding-left: 14px;
    border-left: 1px solid rgba(255, 255, 255, 0.24);
    color: #aab9cb;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.member-auth .navbar-header {
    display: none;
}

.member-auth .auth-navigation {
    display: block !important;
    padding: 0;
    border: 0;
    box-shadow: none;
}

.auth-navigation ul {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
}

.auth-navigation a {
    color: #b8c8d7;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.auth-navigation a:hover,
.auth-navigation a:focus {
    color: #fff;
}

.auth-main {
    min-height: calc(100vh - 130px);
    flex: 1;
    display: flex;
    align-items: center;
    background: var(--auth-canvas);
}

.auth-shell {
    width: min(100% - 48px, 1100px);
    margin: 42px auto;
    display: grid;
    grid-template-columns: minmax(390px, 470px) minmax(390px, 440px);
    align-items: center;
    justify-content: center;
    gap: clamp(48px, 7vw, 92px);
}

.auth-panel {
    min-width: 0;
}

.auth-visual {
    width: min(100%, 470px);
    aspect-ratio: 1003 / 1568;
    justify-self: start;
    overflow: hidden;
    background: #fff;
    transform: translateY(-24px);
}

.auth-visual img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.auth-card {
    border: 1px solid var(--auth-line-strong);
    background: #fff;
    box-shadow: 0 12px 32px rgba(13, 35, 61, 0.09);
}

.auth-card__header {
    padding: 25px 28px 22px;
    border-bottom: 1px solid var(--auth-line);
    background: #fbfcfe;
}

.auth-card__header p {
    margin: 0 0 5px;
    color: var(--auth-blue-700);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.auth-card__header h2 {
    margin: 0;
    color: var(--auth-ink);
    font-family: "SegoeUI-SemiBold", "Segoe UI", Arial, sans-serif;
    font-size: 25px;
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.25;
}

.auth-card__header span {
    margin-top: 7px;
    display: block;
    color: var(--auth-muted);
    font-size: 13px;
}

.member-auth .auth-form {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 24px 28px 28px;
}

.auth-field {
    margin-bottom: 17px;
}

.auth-field > label {
    margin: 0 0 6px;
    display: block;
    color: var(--auth-text);
    font-size: 12px;
    font-weight: 700;
}

.auth-field__control {
    position: relative;
}

.auth-field__control i {
    position: absolute;
    top: 50%;
    left: 15px;
    z-index: 1;
    color: #75869a;
    transform: translateY(-50%);
}

.member-auth .auth-field__control input {
    width: 100%;
    height: 46px;
    padding: 0 14px 0 43px;
    border: 1px solid var(--auth-line-strong);
    border-radius: 1px;
    background: #fff;
    box-shadow: none;
    color: var(--auth-ink);
    font: inherit;
    font-size: 14px;
    line-height: 46px;
}

.member-auth .auth-field__control input::placeholder {
    color: #98a2b3;
}

.member-auth .auth-field__control input:focus {
    border-color: var(--auth-blue-600);
    outline: 3px solid var(--auth-focus);
    outline-offset: 0;
}

.auth-form__options {
    margin: -1px 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    font-size: 12px;
}

.auth-remember {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--auth-text);
    font-weight: 600;
    cursor: pointer;
}

.auth-remember input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--auth-blue-700);
}

.auth-captcha {
    min-height: 78px;
    margin: 0 0 18px;
    overflow: hidden;
}

.auth-captcha .g-recaptcha {
    width: 304px;
    margin: 0;
    transform: none;
    transform-origin: top left;
}

.auth-submit {
    width: 100%;
    min-height: 44px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid var(--auth-action);
    border-radius: 2px;
    background: var(--auth-action);
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.auth-submit:hover,
.auth-submit:focus {
    border-color: var(--auth-action-hover);
    background: var(--auth-action-hover);
    outline-color: var(--auth-action-focus);
}

.auth-back-link {
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
}

.auth-message {
    min-height: 44px;
    margin: 0 0 17px;
    padding: 10px 12px;
    display: flex;
    align-items: flex-start;
    gap: 9px;
    border: 1px solid var(--auth-line);
    font-size: 12px;
}

.auth-message i {
    margin-top: 3px;
}

.auth-message ul {
    margin: 0;
    padding-left: 17px;
}

.auth-message--danger {
    border-color: #f1b5b0;
    background: var(--auth-danger-bg);
    color: var(--auth-danger);
}

.auth-message--success {
    border-color: #a7d8bf;
    background: var(--auth-success-bg);
    color: var(--auth-success);
}

.member-auth .member-footer {
    position: static;
    bottom: auto;
    width: 100%;
    height: auto;
    min-height: 62px;
    padding: 0;
    border: 0;
    background: var(--auth-navy-950);
    color: #9aabba;
}

.member-auth .member-footer__inner {
    width: min(100% - 48px, 1440px);
    min-height: 62px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.member-auth .member-footer p {
    margin: 0;
    color: #9aabba;
    font-size: 12px;
}

.member-auth .member-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.member-auth .member-footer a {
    color: #b8c8d7;
    font-size: 12px;
}

.member-auth .member-footer a:hover {
    color: #fff;
}

@media (max-width: 920px) {
    .auth-shell {
        grid-template-columns: minmax(320px, 390px) minmax(360px, 410px);
        gap: 34px;
    }
}

@media (max-width: 820px) {
    .auth-main {
        min-height: auto;
        align-items: flex-start;
    }

    .auth-shell {
        width: min(100% - 28px, 520px);
        margin: 30px auto 36px;
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .auth-visual {
        width: 100%;
        justify-self: stretch;
        transform: none;
    }
}

@media (max-width: 767px) {
    .member-auth .auth-topbar {
        height: 60px;
    }

    .auth-topbar__inner {
        width: auto;
        margin: 0 14px;
    }

    .auth-brand img {
        width: 116px;
        height: auto;
        flex-basis: 116px;
    }

    .auth-brand__section {
        display: none;
    }

    .member-auth .navbar-header {
        display: block;
    }

    .member-auth .auth-nav-toggle {
        width: 40px;
        height: 40px;
        margin: 0;
        padding: 9px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 1px;
    }

    .member-auth .auth-nav-toggle:hover,
    .member-auth .auth-nav-toggle:focus {
        border-color: rgba(255, 255, 255, 0.55);
        background: transparent;
    }

    .member-auth .auth-nav-toggle .icon-bar {
        background: #dce6f1;
    }

    .member-auth .auth-navigation {
        position: absolute;
        top: 60px;
        right: -14px;
        left: -14px;
        display: none !important;
        padding: 10px 14px 14px;
        border: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        background: var(--auth-navy-950);
    }

    .member-auth .auth-navigation.in {
        display: block !important;
    }

    .auth-navigation ul {
        display: grid;
        gap: 0;
    }

    .auth-navigation li + li {
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .auth-navigation a {
        padding: 11px 8px;
        display: block;
    }

    .member-auth .member-footer__inner {
        width: auto;
        min-height: 82px;
        margin: 0 14px;
        padding: 14px 0;
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 8px;
    }

    .member-auth .member-footer nav {
        gap: 8px 16px;
    }
}

@media (max-width: 420px) {
    .auth-card__header {
        padding: 21px 20px 19px;
    }

    .member-auth .auth-form {
        padding: 21px 20px 24px;
    }

    .auth-form__options {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 340px) {
    .auth-captcha {
        min-height: 68px;
    }

    .auth-captcha .g-recaptcha {
        transform: scale(0.86);
    }
}
