:root {
    --auth-bg: #202431;
    --auth-surface: #232736;
    --auth-line: #666d80;
    --auth-muted: #858ca0;
    --auth-green: #0aca73;
    --auth-green-dark: #0bbd6b;
    --auth-red: #e94879;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    min-height: 100%;
}

body {
    min-width: 320px;
    color: #fff;
    background: #41485c;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

button,
input,
a {
    font: inherit;
}

button {
    border: 0;
    color: inherit;
    background: transparent;
}

img {
    display: block;
    max-width: 100%;
}

svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.auth-shell {
    width: min(100%, 464px);
    min-height: 100vh;
    margin: 0 auto;
    overflow: hidden;
    background: var(--auth-bg);
    box-shadow: 0 18px 45px rgba(0, 0, 0, .24);
}

.auth-hero {
    position: relative;
    display: flex;
    height: 136px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .018) 25%, transparent 25%) 0 0 / 64px 64px,
        linear-gradient(225deg, rgba(255, 255, 255, .025) 25%, transparent 25%) 0 0 / 64px 64px,
        linear-gradient(315deg, rgba(255, 255, 255, .018) 25%, transparent 25%) 32px 32px / 64px 64px,
        linear-gradient(45deg, rgba(255, 255, 255, .025) 25%, transparent 25%) 32px 32px / 64px 64px,
        #272c3a;
}

.auth-hero-register {
    height: 147px;
}

.auth-hero::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, .015), rgba(0, 0, 0, .05));
    content: "";
}

.auth-hero > img {
    position: relative;
    z-index: 1;
    width: 233px;
    height: auto;
}

.auth-hero-register > img {
    width: 229px;
}

.auth-back {
    position: absolute;
    top: 16px;
    left: 10px;
    z-index: 3;
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    color: #bec4d0;
}

.auth-back svg {
    width: 21px;
    height: 21px;
}

.auth-content {
    padding: 9px 20px 44px;
}

.auth-login-content {
    padding-top: 9px;
}

.auth-register-content {
    padding-top: 12px;
}

.auth-message {
    margin: 0 0 10px;
    padding: 10px 12px;
    border-radius: 7px;
    font-size: 13px;
    line-height: 1.45;
}

.auth-message.is-error {
    border: 1px solid rgba(233, 72, 121, .5);
    color: #ffd9e4;
    background: rgba(233, 72, 121, .12);
}

.auth-label {
    display: block;
    margin-bottom: 6px;
    color: #fff;
    font-size: 14px;
    line-height: 18px;
}

.auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    height: 43px;
    margin-bottom: 12px;
    border: 1px solid #70778b;
    border-radius: 8px;
    background: rgba(31, 35, 48, .68);
}

.auth-register-content .auth-input-wrap {
    margin-bottom: 13px;
}

.auth-input-wrap:focus-within {
    border-color: var(--auth-green);
}

.auth-input-wrap input {
    width: 100%;
    height: 100%;
    padding: 0 14px 0 24px;
    border: 0;
    outline: 0;
    color: #fff;
    background: transparent;
    font-size: 15px;
}

.auth-input-wrap input::placeholder {
    color: #7d8497;
}

.required-mark {
    position: absolute;
    left: 11px;
    top: 50%;
    color: var(--auth-red);
    font-size: 16px;
    transform: translateY(-50%);
}

.password-toggle {
    display: grid;
    width: 42px;
    height: 100%;
    place-items: center;
    color: #343a4d;
    cursor: pointer;
    flex: 0 0 auto;
}

.password-toggle svg {
    width: 23px;
    height: 23px;
}

.password-toggle.is-visible {
    color: #8b93a7;
}

.password-toggle.is-visible .eye-slash {
    display: none;
}

.remember-row,
.agreement-row {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    cursor: pointer;
}

.remember-row {
    align-items: center;
    margin: 23px 0 16px;
    font-size: 14px;
}

.remember-row input,
.agreement-row input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.checkbox-box {
    display: grid;
    width: 18px;
    height: 18px;
    place-items: center;
    border-radius: 3px;
    color: #fff;
    background: #14df4d;
    flex: 0 0 auto;
}

.checkbox-box svg {
    width: 15px;
    height: 15px;
    stroke-width: 3;
}

.remember-row input:not(:checked) + .checkbox-box {
    border: 1px solid #687083;
    background: transparent;
}

.remember-row input:not(:checked) + .checkbox-box svg {
    display: none;
}

.auth-submit {
    width: 100%;
    height: 42px;
    border-radius: 7px;
    color: #fff;
    background: linear-gradient(180deg, var(--auth-green) 0%, var(--auth-green-dark) 100%);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
}

.auth-links {
    display: grid;
    margin-top: 10px;
}

.auth-links-three {
    grid-template-columns: 1fr 1fr 1fr;
}

.auth-links-two {
    grid-template-columns: 1fr 1fr;
}

.auth-links a {
    color: #08d184;
    text-decoration: none;
    font-size: 13px;
    text-align: center;
}

.auth-switch {
    margin-top: 24px;
    color: #fff;
    font-size: 16px;
    text-align: center;
}

.auth-switch a {
    color: #08cf7d;
    text-decoration: none;
    font-weight: 700;
}

.auth-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    margin-top: 24px;
    color: #777e91;
}

.auth-separator span {
    width: 40px;
    height: 1px;
    background: #353b4b;
}

.auth-separator p {
    font-size: 13px;
}

.quick-login-row {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 22px;
}

.quick-login-button {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
}

.quick-login-button.wallet {
    position: relative;
    background: linear-gradient(180deg, #2a98ff 0%, #1270ee 100%);
    font-size: 19px;
}

.quick-login-button.wallet span {
    position: absolute;
    right: 6px;
    bottom: 8px;
    font-size: 9px;
}

.quick-login-button.telegram {
    background: #15a7e8;
}

.quick-login-button.telegram svg {
    width: 26px;
    height: 26px;
    fill: #fff;
    stroke: none;
}

.strength-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: -3px 0 13px;
}

.strength-row > span {
    font-size: 14px;
}

.strength-bars {
    display: grid;
    width: 218px;
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;
}

.strength-bars i {
    height: 7px;
    border-radius: 999px;
    background: #3c4354;
}

.strength-bars[data-level="1"] i:nth-child(-n+1),
.strength-bars[data-level="2"] i:nth-child(-n+2),
.strength-bars[data-level="3"] i:nth-child(-n+3),
.strength-bars[data-level="4"] i:nth-child(-n+4) {
    background: #12c872;
}

.optional-title {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 1px 0 12px;
    color: #fff;
    font-size: 15px;
}

.optional-title span {
    color: #11d07b;
    font-size: 20px;
    line-height: 1;
}

.invitation-wrap input {
    padding-left: 12px;
    padding-right: 68px;
}

.paste-button {
    position: absolute;
    right: 10px;
    color: #04dd7f;
    font-size: 14px;
    cursor: pointer;
}

.invitation-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: -6px 0 12px;
    color: #7c8397;
}

.invitation-note > span {
    display: grid;
    width: 17px;
    height: 17px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #ffae0b;
    font-size: 12px;
    font-weight: 800;
    flex: 0 0 auto;
}

.invitation-note p {
    font-size: 14px;
    line-height: 18px;
}

.agreement-row {
    margin: 0 0 14px;
    color: #cbd0dc;
    font-size: 14px;
    line-height: 20px;
}

.agreement-box {
    width: 18px;
    height: 18px;
    margin-top: 1px;
    border: 1px solid #555d70;
    border-radius: 3px;
    flex: 0 0 auto;
}

.agreement-row input:checked + .agreement-box {
    position: relative;
    border-color: #13d37b;
    background: #13d37b;
}

.agreement-row input:checked + .agreement-box::after {
    position: absolute;
    top: 2px;
    left: 5px;
    width: 5px;
    height: 9px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    content: "";
    transform: rotate(45deg);
}

.agreement-row a {
    color: #08d184;
    text-decoration: none;
}

.auth-register-content .auth-switch {
    margin-top: 26px;
}

.auth-register-content .auth-separator {
    margin-top: 24px;
}

@media (max-width: 380px) {
    .auth-content {
        padding-right: 16px;
        padding-left: 16px;
    }

    .strength-bars {
        width: 190px;
    }

    .auth-switch {
        font-size: 15px;
    }
}
