@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;
}

.auth_layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}

.auth_layout .auth_shell_nav {
    position: static;
    padding: 20px 28px;
}

.auth_center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px 56px;
}

.auth_form_wrap {
    width: 100%;
    max-width: 440px;
    padding: 36px 32px;
    background: #ffffff;
    border: 1px solid var(--auth-line);
    border-radius: 24px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 24px 48px -24px rgba(16, 24, 40, .14);
}

.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;
}

.auth_footer {
    padding: 0 16px 24px;
    text-align: center;
    color: var(--auth-muted);
    font-size: .8rem;
}

.auth_footer a {
    color: inherit;
    text-decoration: none;
}

.auth_footer a:hover {
    color: var(--auth-ink);
}

@media (max-width: 520px) {
    .auth_layout .auth_shell_nav {
        padding: 16px 18px;
    }

    .auth_center {
        padding: 4px 12px 40px;
    }

    .auth_form_wrap {
        padding: 28px 20px;
        border-radius: 20px;
    }
}

.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;
    }
}

.ic_box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
    text-align: start;
}

.ic_question {
    font-weight: 600;
}

.ic_cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.ic_card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
}

.ic_card input {
    position: absolute;
    inset-block-start: 12px;
    inset-inline-end: 12px;
    width: 18px;
    height: 18px;
    margin: 0;
}

.ic_card:has(input:checked) {
    border-color: #1f1f1f;
}

.ic_card strong {
    font-size: .92rem;
}

.ic_card small {
    color: #6b7280;
    font-size: .78rem;
}

.ic_other {
    display: none;
    flex-direction: column;
    gap: 10px;
}

.ic_box:has(input[value="other"]:checked) .ic_other {
    display: flex;
}

.ic_field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
}

.ic_field small {
    color: #6b7280;
    font-size: .78rem;
}

.ic_new {
    display: none;
}

.ic_other:has(option[value="new"]:checked) .ic_new {
    display: flex;
}
