@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700&family=Outfit:wght@400;500;600;700&display=swap');

:root {
    --auth-ink: #111827;
    --auth-text: #5c6573;
    --auth-muted: #929aab;
    --auth-line: #e2e7f0;
    --auth-field: #fcfcfe;
    --auth-brand: #2196f3;
    --auth-brand-rgb: 33, 150, 243;
    --auth-gradient: linear-gradient(110deg, #2196f3 0%, #2196f3 72%, #29b6f6 100%);
}

body.auth_body {
    margin: 0;
    overflow-x: clip;
    background:
        radial-gradient(1000px 500px at 50% -10%, rgba(var(--auth-brand-rgb), .09), transparent 70%),
        #f7f8fb;
    color: var(--auth-ink);
    font-family: "Outfit", "Cairo", system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

html[dir="rtl"] body.auth_body {
    font-family: "Cairo", "Outfit", system-ui, sans-serif;
}

html:not([dir="rtl"]) body.auth_body *:not(code):not(kbd):not(pre):not(samp) {
    font-family: "Outfit", sans-serif;
}

html[dir="rtl"] body.auth_body *:not(code):not(kbd):not(pre):not(samp) {
    font-family: "Cairo", sans-serif;
}

.auth_section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100svh;
    padding: 6rem 1rem 3rem;
}

.auth_shell_nav {
    position: absolute;
    inset-block-start: 1.25rem;
    inset-inline: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.auth_brand_small {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -.01em;
}

.auth_language {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-height: 38px;
    padding: .45rem .75rem;
    border: 1px solid var(--auth-line);
    border-radius: 12px;
    background: #fff;
    color: var(--auth-ink);
    font-size: .85rem;
    cursor: pointer;
    transition: border-color .15s ease, color .15s ease;
}

.auth_language:hover {
    border-color: #bbdefb;
    color: var(--auth-brand);
}

.auth_language .icon {
    width: 1.05rem;
    height: 1.05rem;
}

.auth_languages {
    display: inline-flex;
    gap: 2px;
    padding: 3px;
    border: 1px solid var(--auth-line);
    border-radius: 10px;
    background: #fff;
}

.auth_languages a {
    padding: .3rem .65rem;
    border-radius: 7px;
    color: var(--auth-text);
    font-size: .8rem;
    text-decoration: none;
}

.auth_languages a.is_current {
    background: #e8f3fe;
    color: var(--auth-brand);
    font-weight: 500;
}

.auth_section .form_content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    width: 100%;
    max-width: 470px;
}

.auth_card {
    width: 100%;
    padding: 2rem;
    border: 1px solid var(--auth-line);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 16px 45px rgba(45, 55, 98, .06);
}

.auth_form_heading {
    margin-bottom: 1.5rem;
    text-align: center;
}

.auth_form_heading .title {
    margin: 0;
    color: var(--auth-ink);
    font-size: 1.55rem;
    font-weight: 600;
    letter-spacing: -.02em;
}

html[dir="rtl"] .auth_form_heading .title {
    letter-spacing: 0;
}

.auth_form_heading p {
    margin: .3rem 0 0;
    color: var(--auth-text);
    font-size: .88rem;
    line-height: 1.8;
}

.auth_field {
    margin-bottom: 1rem;
    min-width: 0;
}

.auth_row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
}

.auth_section .form-label {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin: 0 .15rem .35rem;
    color: var(--auth-ink);
    font-size: .84rem;
    font-weight: 500;
}

.auth_section .form-label small {
    color: var(--auth-muted);
    font-weight: 400;
}

.auth_section .form-control {
    width: 100%;
    min-height: 48px;
    padding: .75rem .95rem;
    border: 1px solid #dfe4ee;
    border-radius: 13px;
    background: var(--auth-field);
    box-shadow: none;
    color: var(--auth-ink);
    font-size: .9rem;
}

.auth_section .form-control:focus {
    border-color: #90caf9;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(var(--auth-brand-rgb), .1);
}

.auth_section .form-control::placeholder {
    color: var(--auth-muted);
    opacity: 1;
}

.addon_content {
    position: relative;
}

.addon_content .form-control {
    padding-inline-end: 3rem;
}

.show_hidden {
    position: absolute;
    top: 50%;
    inset-inline-end: .4rem;
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #8a93a4;
    transform: translateY(-50%);
    cursor: pointer;
}

.show_hidden:hover,
.show_hidden[aria-pressed="true"] {
    color: var(--auth-brand);
}

.show_hidden .icon {
    width: 1.15rem;
    height: 1.15rem;
}

.auth_field_hint {
    margin: .45rem .15rem 0;
    color: var(--auth-muted);
    font-size: .74rem;
}

.other_links {
    display: flex;
    justify-content: space-between;
    margin: .25rem 0 .5rem;
}

.forgot_link {
    color: var(--auth-brand);
    font-size: .8rem;
    font-weight: 600;
    line-height: 1.6;
    text-decoration: none;
}

.forgot_link:hover {
    text-decoration: underline;
}

.remember_me,
.auth_terms {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    margin: 0;
    color: var(--auth-text);
    font-size: .8rem;
    line-height: 1.6;
    cursor: pointer;
}

.auth_terms {
    margin: .25rem 0 .5rem;
}

.remember_me .form-check-input,
.auth_terms .form-check-input {
    float: none;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin: .15rem 0 0;
    border-color: #cfd5e2;
}

.form-check-input:checked {
    border-color: var(--auth-brand);
    background-color: var(--auth-brand);
}

.action_buttons button {
    min-height: 50px;
    margin-top: .75rem;
    border: 0;
    border-radius: 13px;
    background: #1f1f1f;
    color: #fff;
    font-size: .92rem;
    font-weight: 500;
    transition: box-shadow .2s ease;
}

.action_buttons button:hover {
    color: #fff;
    background: #000;
    box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .5);
}

.auth_after {
    margin: .85rem 0 0;
    color: var(--auth-muted);
    font-size: .76rem;
    line-height: 1.7;
    text-align: center;
}

.note_area {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #edf0f5;
    text-align: center;
}

.note_area p {
    margin: 0;
    color: var(--auth-text);
    font-size: .88rem;
}

.note_area a {
    color: var(--auth-brand);
    font-weight: 500;
    text-decoration: none;
}

.auth_points {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--auth-text);
    font-size: .78rem;
}

.auth_points li {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.auth_points .icon {
    width: 1rem;
    height: 1rem;
    color: #16a34a;
}

.auth_trap {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.show_hidden:focus-visible,
.auth_language:focus-visible {
    outline: 2px solid var(--auth-brand);
    outline-offset: 2px;
}

@media (max-width: 520px) {
    .auth_card {
        padding: 1.5rem 1.15rem;
        border-radius: 20px;
    }

    .auth_row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .auth_shell_nav {
        inset-inline: 1rem;
    }
}

.sml_modal {
    overflow: hidden;
    border: 1px solid #e6e9f1;
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 24px 80px rgba(30, 41, 70, .15);
}

.sml_header {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.25rem .25rem;
}

.sml_header_icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border: 1px solid #d6e9fc;
    border-radius: 14px;
    background: #eef6fe;
    color: #2196f3;
}

.sml_header_icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

.sml_header_text {
    min-width: 0;
    padding-inline-end: 1.25rem;
}

.sml_header_title {
    margin: 0;
    color: var(--auth-ink);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.6;
}

.sml_header_description {
    margin: 0;
    color: var(--auth-text);
    font-size: .8rem;
    line-height: 1.8;
}

.sml_close {
    position: absolute;
    inset-block-start: .7rem;
    inset-inline-end: .7rem;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f7f8fb;
    color: #697386;
    cursor: pointer;
}

.sml_close:hover {
    background: #e3f2fd;
    color: #2196f3;
}

.sml_close svg {
    width: 1rem;
    height: 1rem;
}

.lang_row_names {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex: 1;
    gap: .5rem;
}

.lang_row_name {
    flex: 1;
    text-align: start;
}

.lang_row_name bdi {
    font-weight: 500;
}

.lang_row_code {
    color: var(--auth-muted);
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: .04em;
}

.auth_card .action_buttons {
    display: block;
    margin: 0;
}

.auth_card .action_buttons button {
    width: 100%;
}

.brand_wordmark {
    display: inline-flex;
    align-items: center;
}

.brand_wordmark img {
    display: block;
    height: var(--wordmark-height, 22px);
    width: auto;
}

.brand_wordmark_light {
    display: none !important;
}

:root[data-theme="dark"] .brand_wordmark_dark,
.theme-dark .brand_wordmark_dark {
    display: none !important;
}

:root[data-theme="dark"] .brand_wordmark_light,
.theme-dark .brand_wordmark_light {
    display: block !important;
}

html:has(body.auth_body),
body.auth_body {
    height: 100%;
    overflow: hidden;
    background: #f7f8fb;
}

.auth_layout {
    display: grid;
    grid-template-columns: minmax(380px, 44%) minmax(0, 1fr);
    height: 100vh;
    height: 100dvh;
    padding: 12px;
    gap: 12px;
}

.auth_brand {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 28px;
    overflow: hidden;
    padding: 36px 40px;
    border-radius: 24px;
    background: #1f1f1f;
    color: #fff;
}

.auth_brand>* {
    position: relative;
}

.auth_brand .brand_wordmark_dark {
    display: none !important;
}

.auth_brand .brand_wordmark_light {
    display: block !important;
}

.auth_brand_text h2 {
    max-width: 420px;
    margin: 0;
    font-size: 1.9rem;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -.02em;
}

html[dir="rtl"] .auth_brand_text h2 {
    letter-spacing: 0;
    line-height: 1.45;
}

.auth_brand_text p {
    max-width: 420px;
    margin: 10px 0 0;
    color: rgba(255, 255, 255, .62);
    font-size: .95rem;
    line-height: 1.75;
}

.auth_scene {
    position: relative;
    width: min(400px, 100%);
    margin-top: auto;
    margin-inline-start: 6px;
    padding-bottom: 62px;
}

.auth_paper {
    position: relative;
    padding: 22px 22px 18px;
    border-radius: 6px;
    background: #1c1b1b;
    color: #fafafa;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .25), 0 18px 40px -18px rgba(0, 0, 0, .7);
}

.auth_paper_head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1.5px solid #1f1f1f;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}

html[dir="rtl"] .auth_paper_head {
    letter-spacing: 0;
}

.auth_paper_code {
    font-family: ui-monospace, Menlo, monospace !important;
    font-weight: 500;
    letter-spacing: 0;
    color: #6b6b6b;
}

.auth_paper_device {
    padding: 12px 0 8px;
}

.auth_paper_device strong {
    display: block;
    font-size: 1rem;
    font-weight: 600;
}

.auth_paper_device small {
    color: #6b6b6b;
    font-family: ui-monospace, Menlo, monospace !important;
    font-size: .72rem;
}

.auth_paper_rows {
    margin: 0;
    padding: 0;
    list-style: none;
}

.auth_paper_rows li {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 5px 0;
    font-size: .84rem;
    opacity: .18;
    transition: opacity .25s ease;
}

.auth_paper_rows li em {
    font-style: normal;
}

.auth_paper_rows li i {
    flex: 1;
    border-bottom: 1.5px dotted #b9b4a8;
    transform: translateY(-3px);
}

.auth_paper_rows li b {
    font-weight: 600;
    color: #1d7a3e;
}

.auth_paper_rows li.is_absent b {
    color: #8a8478;
    font-weight: 500;
}

.auth_paper_rows li.is_printed {
    opacity: 1;
}

.auth_paper_rows li b {
    position: relative;
}

.auth_paper_rows li.is_printing b {
    color: transparent;
}

.auth_paper_rows li.is_printing b::after {
    content: "";
    position: absolute;
    inset-inline-end: 0;
    top: 3px;
    width: 7px;
    height: 13px;
    background: #1f1f1f;
    animation: scene_caret .5s steps(2, jump-none) infinite;
}

.auth_stamp {
    position: absolute;
    inset-inline-start: 46%;
    bottom: 34px;
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border: 3px solid #1d7a3e;
    border-radius: 50%;
    color: #1d7a3e;
    line-height: 1;
    box-shadow: inset 0 0 0 3px #f6f4ef, inset 0 0 0 4.5px rgba(29, 122, 62, .8);
    opacity: 0;
    transform: rotate(-14deg) scale(1.6);
    -webkit-mask: radial-gradient(circle at 30% 70%, #000 55%, rgba(0, 0, 0, .75) 75%, #000 100%);
    mask: radial-gradient(circle at 30% 70%, #000 55%, rgba(0, 0, 0, .75) 75%, #000 100%);
}

.auth_stamp strong {
    font-size: 1.7rem;
    font-weight: 700;
    margin-top: 6px;
}

.auth_stamp small {
    font-size: .62rem;
    font-weight: 600;
    margin-top: -10px;
}

.auth_stamp.is_stamped {
    opacity: .88;
    transform: rotate(-14deg) scale(1);
    transition: transform .18s cubic-bezier(.5, 0, .75, 0), opacity .12s linear;
}

.auth_sticker {
    position: absolute;
    inset-inline-end: -22px;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px;
    padding-inline-end: 12px;
    border-radius: 8px;
    background: #fff;
    color: #1f1f1f;
    box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .65);
    opacity: 0;
    transform: translateY(14px) rotate(5deg);
    transition: opacity .3s ease, transform .45s cubic-bezier(.2, .9, .3, 1.2);
}

.auth_sticker.is_shown {
    opacity: 1;
    transform: translateY(0) rotate(3.5deg);
}

.auth_sticker_qr {
    display: block;
    width: 52px;
    height: 52px;
}

.auth_sticker_qr img,
.auth_sticker_qr canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.auth_sticker_text b {
    display: block;
    font-size: .86rem;
    font-weight: 700;
}

.auth_sticker_text small {
    color: #6b6b6b;
    font-family: ui-monospace, Menlo, monospace !important;
    font-size: .64rem;
}

@keyframes scene_caret {
    50% {
        opacity: 0;
    }
}

.auth_brand .auth_points {
    justify-content: flex-start;
    gap: 6px 18px;
    color: rgba(255, 255, 255, .62);
}

.auth_brand .auth_points .icon {
    color: rgba(255, 255, 255, .8);
}

.auth_side {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow-y: auto;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid var(--auth-line);
}

.auth_side .auth_shell_nav {
    position: sticky;
    top: 0;
    z-index: 2;
    inset-inline: auto;
    padding: 18px 28px;
    background: linear-gradient(#fff 70%, rgba(255, 255, 255, 0));
}

.auth_small_mark {
    visibility: hidden;
}

.auth_form_wrap {
    width: 100%;
    max-width: 420px;
    margin: auto;
    padding: 12px 24px 40px;
}

.auth_form_wrap .auth_form_heading {
    text-align: start;
    margin-bottom: 1.6rem;
}

.auth_form_wrap .auth_form_heading .title {
    font-size: 1.7rem;
}

.auth_form_wrap .form-label {
    margin-inline: 0;
}

.auth_form_wrap .action_buttons {
    display: block;
    margin: 0;
}

.auth_form_wrap .action_buttons button {
    width: 100%;
}

.auth_form_wrap .note_area {
    text-align: start;
}

.auth_form_wrap .auth_after {
    text-align: start;
}

@media (max-width: 900px) {
    .auth_layout {
        grid-template-columns: minmax(0, 1fr);
        padding: 0;
    }

    .auth_brand {
        display: none;
    }

    .auth_side {
        border: 0;
        border-radius: 0;
    }

    .auth_small_mark {
        visibility: visible;
    }
}

@media (prefers-reduced-motion: reduce) {

    .auth_paper_rows li,
    .auth_stamp,
    .auth_sticker {
        transition: none !important;
        animation: none !important;
    }
}

.auth_terms a { color: var(--auth-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

.auth_home_link { display: inline-flex; align-self: flex-start; }
.auth_home_link:hover { opacity: .85; }

@media (max-width: 991.98px) {
    input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),
    select,
    textarea,
    .form-control,
    .form-select,
    .ts-control,
    .ts-control input {
        font-size: 16px !important;
    }
}
