@font-face {
    font-family: "Kook";
    src: url("../../assets/fonts/KookFaNum.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Kook";
    src: url("../../assets/fonts/KookFaNum-Bold.woff2") format("woff2");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

:root {
    --rs-night: #06121c;
    --rs-night-deep: #030a10;
    --rs-card: rgba(8, 24, 36, 0.76);
    --rs-card-strong: rgba(9, 29, 43, 0.92);
    --rs-line: rgba(255, 255, 255, 0.1);
    --rs-text: #f4f6f7;
    --rs-muted: #9cabb5;
    --rs-gold: #dda74f;
    --rs-gold-light: #f2d08f;
    --rs-error: #ff827a;
    --rs-success: #77d7ae;
    --rs-radius: 32px;
    --rs-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--rs-night-deep);
}

body.rs-account {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    color: var(--rs-text);
    background:
        radial-gradient(circle at 50% -10%, rgba(38, 94, 117, 0.3), transparent 40%),
        linear-gradient(145deg, #030b12 0%, #071925 50%, #040d14 100%);
    font-family: "Kook", Tahoma, sans-serif;
    font-size: 16px;
    overflow-x: hidden;
}

button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

[hidden] {
    display: none !important;
}

.rs-account__page {
    isolation: isolate;
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 64px 24px 52px;
    overflow: hidden;
}

.rs-account__page::before {
    content: "";
    position: absolute;
    z-index: -3;
    inset: 0;
    opacity: 0.3;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 76px 76px;
    -webkit-mask-image: radial-gradient(circle at center, #000 10%, transparent 72%);
    mask-image: radial-gradient(circle at center, #000 10%, transparent 72%);
}

.rs-account__page::after {
    content: "";
    position: absolute;
    z-index: -2;
    width: min(820px, 88vw);
    height: min(820px, 88vw);
    border: 1px solid rgba(221, 167, 79, 0.08);
    border-radius: 50%;
    box-shadow:
        0 0 0 90px rgba(221, 167, 79, 0.018),
        0 0 0 180px rgba(221, 167, 79, 0.01);
    animation: rs-orbit 18s linear infinite;
}

.rs-account__grain {
    position: absolute;
    z-index: 7;
    inset: 0;
    opacity: 0.035;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

.rs-account__aurora {
    position: absolute;
    z-index: -1;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.2;
    pointer-events: none;
}

.rs-account__aurora--one {
    top: -180px;
    right: -120px;
    background: #2b8ca5;
    animation: rs-float 12s ease-in-out infinite alternate;
}

.rs-account__aurora--two {
    bottom: -240px;
    left: -100px;
    background: #b77827;
    animation: rs-float 15s ease-in-out -4s infinite alternate-reverse;
}

.rs-account__back {
    position: fixed;
    z-index: 10;
    top: max(26px, env(safe-area-inset-top));
    left: 32px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.25s ease, transform 0.25s ease;
}

.rs-account__back-mobile {
    display: none;
}

.rs-account__back svg {
    width: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
}

.rs-account__back:hover {
    color: var(--rs-gold-light);
    transform: translateX(-3px);
}
p#rs-phone-hint {
    display: none;
}
.rs-auth-shell {
 position: relative;
    width: min(100%, 460px);
    min-height: auto;
    padding: 30px 52px 24px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: var(--rs-radius);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.055), transparent 42%), var(--rs-card);
    box-shadow: 0 38px 100px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 0 70px rgba(221, 167, 79, 0.035);
    backdrop-filter: blur(28px) saturate(125%);
    -webkit-backdrop-filter: blur(28px) saturate(125%);
    animation: rs-card-in 0.9s var(--rs-ease) both;
    padding-bottom: 50px;
}

.rs-auth-shell::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 18%;
    width: 64%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(242, 208, 143, 0.88), transparent);
    box-shadow: 0 0 18px rgba(221, 167, 79, 0.6);
}

.rs-auth-shell::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 14px;
    border: 1px solid rgba(255, 255, 255, 0.025);
    border-radius: calc(var(--rs-radius) - 9px);
    pointer-events: none;
}

.rs-auth-shell__halo {
    position: absolute;
    z-index: -2;
    top: -42px;
    left: 50%;
    width: 310px;
    height: 110px;
    border-radius: 50%;
    background: rgba(221, 167, 79, 0.18);
    filter: blur(46px);
    transform: translateX(-50%);
    pointer-events: none;
}

.rs-auth-brand {
    text-align: center;
}

.rs-auth-brand__logo {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 96px;
    height: 72px;
    margin-bottom: 2px;
}

.rs-auth-brand__logo::before {
    content: "";
    position: absolute;
    inset: 6px 0;
    border-radius: 50%;
    background: rgba(221, 167, 79, 0.12);
    filter: blur(18px);
}

.rs-auth-brand__logo img {
    position: relative;
    width: 94px;
    height: auto;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.36));
}

.rs-auth-brand__eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--rs-gold);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 3px;
}

.rs-auth-brand__eyebrow span {
    width: 18px;
    height: 1px;
    background: linear-gradient(90deg, transparent, currentColor);
}

.rs-auth-brand__eyebrow span:last-child {
    background: linear-gradient(90deg, currentColor, transparent);
}

.rs-auth-brand h1 {
    margin: 8px 0 0;
    font-size: clamp(25px, 4vw, 31px);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.5px;
}

.rs-auth-progress {
    direction: ltr;
    display: flex;
    justify-content: center;
    gap: 7px;
    height: 3px;
    margin: 15px auto 24px;
}

.rs-auth-progress span {
    width: 18px;
    height: 3px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.12);
    transition: width 0.45s var(--rs-ease), background 0.45s ease, box-shadow 0.45s ease;
}

.rs-auth-progress span.is-active {
    width: 34px;
    background: var(--rs-gold);
    box-shadow: 0 0 12px rgba(221, 167, 79, 0.6);
}

.rs-auth-progress span.is-passed {
    background: rgba(221, 167, 79, 0.4);
}

.rs-auth-live {
    position: absolute;
    overflow: hidden;
    width: 1px;
    height: 1px;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.rs-auth-step {
    animation: rs-step-in 0.55s var(--rs-ease) both;
}

.rs-auth-step.is-leaving {
    animation: rs-step-out 0.24s ease both;
}

.rs-auth-step__heading {
    min-height: 78px;
    margin-bottom: 20px;
    text-align: center;
}

.rs-auth-step__heading h2 {
    margin: 0 0 5px;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
	display: none;
}

.rs-auth-step__heading p {
    margin: 0;
    color: var(--rs-muted);
    font-size: 14px;
    line-height: 1.9;
}

.rs-auth-step__heading p bdi {
    color: var(--rs-gold-light);
    font-weight: 700;
    letter-spacing: 0.6px;
}

.rs-auth-step__icon {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin-bottom: 8px;
    border: 1px solid rgba(221, 167, 79, 0.28);
    border-radius: 13px;
    color: var(--rs-gold-light);
    background: rgba(221, 167, 79, 0.07);
}

.rs-auth-step__icon svg {
    width: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
}

.rs-auth-step__icon--verified {
    color: var(--rs-success);
    border-color: rgba(119, 215, 174, 0.28);
    background: rgba(119, 215, 174, 0.07);
}

.rs-field {
    display: block;
}

.rs-field__label {
    display: block;
    margin: 0 4px 7px 0;
    color: #cbd4da;
    font-size: 13px;
}

.rs-field__control {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 56px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 17px;
    background: rgba(2, 10, 16, 0.5);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.rs-field__control:focus-within {
    border-color: rgba(221, 167, 79, 0.65);
    background: rgba(4, 14, 21, 0.75);
    box-shadow: 0 0 0 4px rgba(221, 167, 79, 0.08), 0 8px 28px rgba(0, 0, 0, 0.18);
}

.rs-field.has-error .rs-field__control,
.rs-field__control.has-error {
    border-color: rgba(255, 130, 122, 0.7);
    box-shadow: 0 0 0 4px rgba(255, 130, 122, 0.07);
}

.rs-field__control input {
    width: 100%;
    height: 54px;
    padding: 0 18px;
    border: 0;
    outline: 0;
    color: #fff;
    background: transparent;
    font-size: 16px;
}

.rs-field__control input::placeholder {
    color: rgba(174, 188, 197, 0.42);
}

.rs-field__control--phone {
    direction: ltr;
}


.rs-field__control--phone input {
    direction: ltr;
    padding: 0 14px;
    font-size: 17px;
    letter-spacing: 1.4px;
    text-align: left;
}

.rs-field__country {
    flex: 0 0 auto;
    padding: 0 15px 0 17px;
    border-right: 1px solid rgba(255, 255, 255, 0.09);
    color: #8da0ac;
    font-size: 13px;
}

.rs-field__hint,
.rs-field__error {
    min-height: 22px;
    margin: 7px 4px 4px;
    color: #71838f;
    font-size: 11px;
    line-height: 1.7;
}

.rs-field__error {
    display: none;
    color: var(--rs-error);
}

.rs-field__error.is-visible {
    display: block;
    animation: rs-error-in 0.32s var(--rs-ease) both;
}

.rs-field__error--center {
    margin-top: 10px;
    text-align: center;
}

.rs-auth-button {
    isolation: isolate;
    position: relative;
    width: 100%;
    min-height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    overflow: hidden;
    border: 0;
    border-radius: 17px;
    color: #17202a;
    background: linear-gradient(110deg, #c88c34 0%, #f1ce86 54%, #c48b37 100%);
    background-size: 200% 100%;
    box-shadow: 0 12px 34px rgba(190, 126, 36, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.45);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.25s var(--rs-ease), box-shadow 0.25s ease, filter 0.25s ease;
}

.rs-auth-button > * {
    position: relative;
    z-index: 2;
}

.rs-auth-button i {
    position: absolute;
    z-index: 1;
    top: -45%;
    left: -25%;
    width: 22%;
    height: 190%;
    background: rgba(255, 255, 255, 0.36);
    filter: blur(8px);
    transform: rotate(18deg);
    transition: left 0.7s var(--rs-ease);
}

.rs-auth-button svg {
    width: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
    transform: rotate(180deg);
}

.rs-auth-button:hover:not(:disabled) {
    transform: translateY(-2px);
    background-position: 100% 0;
    box-shadow: 0 18px 42px rgba(190, 126, 36, 0.31), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.rs-auth-button:hover:not(:disabled) i {
    left: 115%;
}

.rs-auth-button:active:not(:disabled) {
    transform: translateY(0) scale(0.99);
}

.rs-auth-button:disabled {
    cursor: wait;
    filter: saturate(0.6) brightness(0.74);
}

.rs-auth-button.is-loading span,
.rs-auth-button.is-loading svg {
    opacity: 0;
}

.rs-auth-button.is-loading::after {
    content: "";
    position: absolute;
    z-index: 3;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(23, 32, 42, 0.25);
    border-top-color: #17202a;
    border-radius: 50%;
    animation: rs-spin 0.75s linear infinite;
}

.rs-auth-link {
    display: inline-block;
    margin-top: 5px;
    padding: 0;
    border: 0;
    color: var(--rs-gold-light);
    background: none;
    font-size: 12px;
    cursor: pointer;
}

.rs-auth-link:hover {
    color: #fff;
}

.rs-otp {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 9px;
    margin-top: 4px;
}

.rs-otp__digit {
    min-width: 0;
    height: 58px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 15px;
    outline: 0;
    color: #fff;
    background: rgba(2, 10, 16, 0.53);
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    caret-color: var(--rs-gold);
    transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.rs-otp__digit:focus,
.rs-otp__digit.is-filled {
    border-color: rgba(221, 167, 79, 0.67);
    box-shadow: 0 0 0 4px rgba(221, 167, 79, 0.07), 0 10px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.rs-otp.has-error .rs-otp__digit {
    border-color: rgba(255, 130, 122, 0.65);
}

.rs-resend {
    min-height: 25px;
    margin-top: 8px;
    color: #72848f;
    font-size: 12px;
    text-align: center;
}

.rs-resend bdi {
    color: #c5d0d6;
}

.rs-resend button {
    padding: 0;
    border: 0;
    color: var(--rs-gold-light);
    background: none;
    font: inherit;
    cursor: pointer;
}

.rs-name-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.rs-auth-success {
    padding-top: 2px;
    text-align: center;
}

.rs-auth-success__mark {
    position: relative;
    width: 82px;
    height: 82px;
    margin: 0 auto 14px;
    color: var(--rs-success);
}

.rs-auth-success__mark::before {
    content: "";
    position: absolute;
    inset: 14px;
    border-radius: 50%;
    background: rgba(119, 215, 174, 0.18);
    filter: blur(18px);
}

.rs-auth-success__mark svg {
    position: relative;
    width: 100%;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.rs-auth-success__mark circle {
    stroke: rgba(119, 215, 174, 0.4);
    stroke-dasharray: 170;
    animation: rs-draw 0.9s var(--rs-ease) both;
}

.rs-auth-success__mark path {
    stroke-dasharray: 42;
    animation: rs-draw 0.7s 0.25s var(--rs-ease) both;
}

.rs-auth-success__eyebrow {
    color: var(--rs-gold);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2.4px;
}

.rs-auth-success h2 {
    margin: 6px 0;
    font-size: 23px;
}

.rs-auth-success > p {
    margin: 0;
    color: var(--rs-muted);
    font-size: 13px;
}

.rs-auth-success__redirect {
    margin-top: 20px;
    padding: 11px 14px;
    border: 1px solid rgba(221, 167, 79, 0.16);
    border-radius: 13px;
    color: #9eabb3;
    background: rgba(221, 167, 79, 0.055);
    font-size: 12px;
}

.rs-auth-success__redirect bdi {
    color: var(--rs-gold-light);
    font-weight: 700;
}

.rs-auth-button--link {
    margin-top: 16px;
}

.rs-auth-logout {
    margin-top: 14px;
    color: #7d8d97;
}

.rs-auth-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 23px;
    padding-top: 17px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    color: #61737e;
    font-size: 10px;display: none;
}

.rs-auth-footer svg {
    width: 14px;
    fill: none;
    stroke: rgba(221, 167, 79, 0.7);
    stroke-linecap: round;
    stroke-width: 1.5;
}

.rs-auth-footer i {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(221, 167, 79, 0.6);
}

.rs-account__signature {
position: absolute;
    bottom: max(20px, env(safe-area-inset-bottom));
    left: 50%;
    margin: 0;
    color: rgb(179 193 201 / 40%);
    font-size: 16px;
    letter-spacing: 0.2px;
    transform: translateX(-50%);
    white-space: nowrap;
}

.rs-auth-shell.is-shaking {
    animation: rs-shake 0.42s ease;
}

@keyframes rs-card-in {
    from { opacity: 0; transform: translateY(28px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes rs-step-in {
    from { opacity: 0; transform: translateY(14px); filter: blur(4px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes rs-step-out {
    to { opacity: 0; transform: translateY(-9px); filter: blur(3px); }
}

@keyframes rs-error-in {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes rs-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(7px); }
    50% { transform: translateX(-6px); }
    75% { transform: translateX(3px); }
}

@keyframes rs-spin {
    to { transform: rotate(360deg); }
}

@keyframes rs-draw {
    from { stroke-dashoffset: 170; }
    to { stroke-dashoffset: 0; }
}

@keyframes rs-orbit {
    to { transform: rotate(360deg); }
}

@keyframes rs-float {
    to { transform: translate3d(40px, 45px, 0) scale(1.08); }
}

@media (max-width: 640px) {
    body.rs-account {
        background: linear-gradient(160deg, #061824 0%, #030b11 75%);
    }

    .rs-account__page {
        display: flex;
        align-items: stretch;
        padding: max(12px, env(safe-area-inset-top)) 0 max(10px, env(safe-area-inset-bottom));
    }

    .rs-account__page::before {
        background-size: 54px 54px;
    }

    .rs-account__page::after {
        top: 12%;
        width: 128vw;
        height: 128vw;
    }

    .rs-account__back {
        position: absolute;
        top: max(18px, env(safe-area-inset-top));
        left: 19px;
        font-size: 13px;
    }

    .rs-account__back svg {
        width: 18px;
    }

    .rs-account__back-desktop {
        display: none;
    }

    .rs-account__back-mobile {
        display: inline;
    }

    .rs-auth-shell {
        width: 100%;
        min-height: calc(100dvh - max(22px, env(safe-area-inset-top)) - max(18px, env(safe-area-inset-bottom)));
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 42px 24px 22px;
        border: 0;
        border-radius: 28px 28px 0 0;
        background: linear-gradient(180deg, rgba(10, 30, 44, 0.4), rgba(4, 13, 20, 0.72));
        box-shadow: none;
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }

    .rs-auth-shell::before {
        top: 0;
        left: 30%;
        width: 40%;
    }

    .rs-auth-shell::after {
        display: none;
    }

    .rs-auth-shell__halo {
        top: 5%;
        width: 240px;
        height: 100px;
    }

    .rs-auth-brand__logo {
        width: 88px;
        height: 64px;
    }

    .rs-auth-brand__logo img {
        width: 86px;
    }

    .rs-auth-brand h1 {
        font-size: 27px;
    }

    .rs-auth-progress {
        margin-bottom: 27px;
    }

    .rs-auth-step__heading {
        margin-bottom: 24px;
    }

    .rs-auth-step__heading h2 {
        font-size: 19px;
    }

    .rs-auth-step__heading p {
        max-width: 330px;
        margin-inline: auto;
        font-size: 13px;
    }

    .rs-field__control {
        min-height: 58px;
    }

    .rs-auth-button {
        min-height: 58px;
        margin-top: 18px;
    }

    .rs-auth-footer {
        margin-top: auto;
        padding-top: 22px;
    }

    .rs-account__signature {
        display: none;
    }
}

@media (max-width: 390px) {
    .rs-auth-shell {
        padding-right: 18px;
        padding-left: 18px;
    }

    .rs-otp {
        gap: 7px;
    }

    .rs-otp__digit {
        height: 54px;
        border-radius: 13px;
    }

    .rs-name-grid {
        grid-template-columns: 1fr;
        gap: 9px;
    }
}

@media (max-height: 720px) and (max-width: 640px) {
    .rs-auth-shell {
        justify-content: flex-start;
        min-height: 100%;
        padding-top: 24px;
    }

    .rs-auth-brand__logo {
        height: 52px;
    }

    .rs-auth-brand__logo img {
        width: 72px;
    }

    .rs-auth-progress {
        margin: 10px auto 17px;
    }

    .rs-auth-step__heading {
        min-height: auto;
        margin-bottom: 14px;
    }

    .rs-auth-footer {
        margin-top: 17px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
