/*
 * Mobile authentication reference pass.
 *
 * These rules are intentionally limited to the three screenshot-backed auth
 * states.  The production POST actions, validation, throttling, and reset
 * contracts remain owned by Laravel; this file only controls presentation.
 */

.fd-auth-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.fd-auth-reference-screen .auth-back svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.fd-auth-status-reference {
    position: fixed;
    z-index: 120;
    top: 0;
    left: 0;
    display: block;
    width: 375px;
    height: 44px;
    max-width: 100%;
    pointer-events: none;
    user-select: none;
}

body.app-auth:has(.fd-auth-login-screen, .fd-auth-forgot-screen) > .fd-system-status {
    visibility: hidden;
}

body.app-auth:has(.fd-auth-forgot-screen),
body.app-auth:has(.fd-auth-phone-screen),
body.app-auth:has(.fd-auth-reset-done-screen) {
    min-height: 100vh;
    min-height: 100dvh;
    padding-bottom: 0 !important;
    overflow: hidden;
    background: #fff;
}

body.app-auth:has(.fd-auth-forgot-screen) > main,
body.app-auth:has(.fd-auth-phone-screen) > main,
body.app-auth:has(.fd-auth-reset-done-screen) > main {
    width: min(100%, 375px);
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    padding-top: 44px !important;
    overflow: hidden;
    border-radius: 0;
    box-shadow: none;
}

body.app-auth:has(.fd-auth-forgot-screen) .auth-section,
body.app-auth:has(.fd-auth-phone-screen) .auth-section,
body.app-auth:has(.fd-auth-reset-done-screen) .auth-section {
    display: block;
    width: 100%;
    height: calc(100vh - 44px);
    height: calc(100dvh - 44px);
    min-height: 0;
    padding: 0;
    overflow: hidden;
    background: #fff;
}

body.app-auth:has(.fd-auth-forgot-screen) .fd-system-status,
body.app-auth:has(.fd-auth-reset-done-screen) .fd-system-status {
    height: 44px;
    padding: 11px 39px 0 47px;
    font-size: 16px;
}

body.app-auth:has(.fd-auth-forgot-screen) .fd-system-status {
    padding-right: 47px;
    padding-left: 39px;
}

body.app-auth:has(.fd-auth-phone-screen) .fd-system-status {
    height: 44px;
    padding: 18px 17px 0 18px;
    font-size: 16px;
}

body.app-auth:has(.fd-auth-phone-screen) .fd-system-status > b {
    transform: translate(1px, -3px) scaleX(1.1);
}

body.app-auth:has(.fd-auth-phone-screen) .fd-system-status > span {
    transform: translateX(-6px) scaleY(1.15);
    transform-origin: center;
}

body.app-auth:has(.fd-auth-forgot-screen) .fd-system-status > b,
body.app-auth:has(.fd-auth-phone-screen) .fd-system-status > b,
body.app-auth:has(.fd-auth-reset-done-screen) .fd-system-status > b {
    font: 700 16px/16px "Segoe UI", sans-serif;
    transform: translateX(2px) scaleX(1.03);
    transform-origin: left center;
}

body.app-auth:has(.fd-auth-reset-done-screen) .fd-system-status > b {
    transform: translate(3px, -1px) scaleX(1.03);
}

body.app-auth:has(.fd-auth-forgot-screen) .fd-system-status > b {
    transform: translate(2px, -2px) scale(1.13, 1.15);
    transform-origin: left top;
}

body.app-auth:has(.fd-auth-forgot-screen) .fd-system-status > span {
    transform: scaleY(1.15);
    transform-origin: top;
}

body.app-auth:has(.fd-auth-phone-screen) .fd-system-status > b {
    transform: translate(1px, -3px) scaleX(1.1);
}

body.app-auth:has(.fd-auth-reset-done-screen) .fd-system-status > span > i {
    transform: translate(-1px, 1px);
}

body.app-auth:has(.fd-auth-forgot-screen) .fd-system-status > span > strong,
body.app-auth:has(.fd-auth-phone-screen) .fd-system-status > span > strong,
body.app-auth:has(.fd-auth-reset-done-screen) .fd-system-status > span > strong {
    border-color: #7d817f;
    background: #090b0a;
    box-shadow: none;
    transform: translateX(3px) scaleX(1.13);
    transform-origin: left center;
}

body.app-auth:has(.fd-auth-reset-done-screen) .fd-system-status > span > strong {
    height: 12px;
    transform: translateX(3px) scaleX(1.03);
}

body.app-auth:has(.fd-auth-forgot-screen) .fd-system-status > span > strong::after,
body.app-auth:has(.fd-auth-phone-screen) .fd-system-status > span > strong::after,
body.app-auth:has(.fd-auth-reset-done-screen) .fd-system-status > span > strong::after {
    position: absolute;
    top: 3px;
    right: -3px;
    width: 2px;
    height: 5px;
    border-radius: 0 2px 2px 0;
    background: #7d817f;
    content: "";
}

body.app-auth:has(.fd-auth-forgot-screen) .fd-system-status > span > em,
body.app-auth:has(.fd-auth-phone-screen) .fd-system-status > span > em,
body.app-auth:has(.fd-auth-reset-done-screen) .fd-system-status > span > em {
    width: 15px;
    height: 11px;
    margin: 0 3px;
    border: 0;
    border-radius: 0;
    rotate: 0deg;
    background:
        radial-gradient(circle at 50% 100%, #090b0a 0 1.4px, transparent 1.7px),
        radial-gradient(circle at 50% 100%, transparent 0 3.7px, #090b0a 3.9px 5px, transparent 5.3px),
        radial-gradient(circle at 50% 100%, transparent 0 6.5px, #090b0a 6.7px 7.8px, transparent 8.1px);
    transform: translateX(2px) scaleX(1.12);
}

body.app-auth:has(.fd-auth-reset-done-screen) .fd-system-status > span > em {
    transform: translate(-3px, -4px) scaleX(1.12);
}

body.app-auth:has(.fd-auth-forgot-screen) .fd-system-status > span > em::before,
body.app-auth:has(.fd-auth-forgot-screen) .fd-system-status > span > em::after,
body.app-auth:has(.fd-auth-phone-screen) .fd-system-status > span > em::before,
body.app-auth:has(.fd-auth-phone-screen) .fd-system-status > span > em::after,
body.app-auth:has(.fd-auth-reset-done-screen) .fd-system-status > span > em::before,
body.app-auth:has(.fd-auth-reset-done-screen) .fd-system-status > span > em::after {
    display: none;
}

/* Forgot password -------------------------------------------------------- */

.app-auth .fd-auth-forgot-screen .forgot-card {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 0 15px;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
}

.app-auth .fd-auth-forgot-screen .forgot-card::before,
.app-auth .fd-auth-forgot-screen .forgot-card::after {
    display: none;
}

.app-auth .fd-auth-forgot-screen .auth-back {
    position: absolute;
    z-index: 2;
    top: 7px;
    left: 13px;
    width: 36px;
    height: 36px;
    font: inherit;
    transform: none;
}

.app-auth .fd-auth-forgot-screen .auth-back img {
    display: block;
    width: 36px;
    height: 36px;
    max-width: none;
}

.app-auth .fd-auth-forgot-screen .forgot-card h1 {
    position: absolute;
    top: 62px;
    right: 15px;
    left: 15px;
    margin: 0;
    color: #2e3442 !important;
    font-size: 24px !important;
    font-weight: 500;
    line-height: 38px;
    text-align: center;
    transform: scale(1.05, 1);
}

.app-auth .fd-auth-forgot-screen .forgot-card > p:not(.fd-auth-visually-hidden) {
    position: absolute;
    top: 100px;
    right: 15px;
    left: 15px;
    max-width: none;
    margin: 0;
    color: #9ba3ae !important;
    font-size: 17px !important;
    font-weight: 400;
    line-height: 31.24px;
    text-align: center;
    transform: translate(-1px, 1px) scaleX(1.08);
}

.app-auth .fd-auth-forgot-screen .forgot-card > .form-error {
    position: absolute;
    z-index: 3;
    top: 189px;
    right: 15px;
    left: 15px;
    margin: 0;
    border-radius: 8px;
    font-size: 12px;
}

.app-auth .fd-auth-forgot-screen .forgot-card form {
    position: absolute;
    top: 197px;
    right: 15px;
    left: 15px;
    margin: 0;
}

.app-auth .fd-auth-forgot-screen .forgot-card:has(> .form-error) form {
    top: 251px;
}

.app-auth .fd-auth-forgot-screen .forgot-card form > label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.app-auth .fd-auth-forgot-screen .auth-field {
    position: relative;
    width: 100%;
    height: 58px;
}

.app-auth .fd-auth-forgot-screen .auth-field input {
    width: 100%;
    height: 58px;
    min-height: 58px !important;
    padding: 12px 49px 12px 14px !important;
    border: 1px solid #e0e3ea !important;
    border-radius: 9px !important;
    outline: 0;
    background: #fff;
    color: #2e3442;
    font: 300 16px/1.6 "Cairo", "Segoe UI", sans-serif;
    text-align: right;
    box-shadow: none !important;
}

.app-auth .fd-auth-forgot-screen .auth-field input::placeholder {
    color: #9ba3ae;
    opacity: 1;
    word-spacing: 2px;
}

.app-auth .fd-auth-forgot-screen .auth-field input:focus-visible {
    border-color: #00ad78 !important;
    outline: 2px solid rgb(0 173 120 / 18%);
    outline-offset: 1px;
}

.app-auth .fd-auth-forgot-screen .fd-auth-mail-icon {
    position: absolute;
    z-index: 2;
    top: 17px;
    right: 16px;
    width: 27px;
    height: 25px;
    max-width: none;
    pointer-events: none;
}

.app-auth .fd-auth-forgot-screen .auth-field-mail i {
    display: none;
}

.app-auth .fd-auth-forgot-screen .forgot-card .button {
    display: grid;
    width: calc(100% - 2px);
    height: 52px;
    min-height: 52px;
    margin: 19px 1px 0;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 7px;
    background: #00a269 !important;
    color: #fff;
    font: 500 20px/1 "Cairo", "Segoe UI", sans-serif;
    box-shadow: none;
}

.app-auth .fd-auth-forgot-screen .forgot-card .button:hover {
    background: #00a269 !important;
    transform: none !important;
}

.app-auth .fd-auth-forgot-screen .forgot-card .button > span {
    transform: scaleX(1.02);
}

/* Phone entry ------------------------------------------------------------ */

.app-auth .fd-auth-phone-screen .fd-auth-phone-stage {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
    text-align: right;
}

.app-auth .fd-auth-phone-screen .fd-auth-phone-stage::before,
.app-auth .fd-auth-phone-screen .fd-auth-phone-stage::after {
    display: none;
}

.fd-auth-phone-top {
    position: absolute;
    top: 28px;
    right: 14px;
    left: 14px;
    display: flex;
    direction: ltr;
    height: 31px;
    align-items: center;
    justify-content: space-between;
}

.fd-auth-language {
    display: inline-flex;
    width: 107px;
    height: 31px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border-radius: 8px;
    background: #cdfde3;
    color: #00a269;
    font-size: 13px;
    font-weight: 400;
    line-height: 1;
    white-space: nowrap;
}

.fd-auth-language svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    fill: currentColor;
}

.fd-auth-logo {
    display: grid;
    width: 91px;
    height: 31px;
    place-items: center start;
    direction: ltr;
}

.fd-auth-logo img {
    display: block;
    width: 80px;
    height: 31px;
    object-fit: contain;
    transform: translate(-2px, -2px) scale(.99, 1.12);
    transform-origin: center;
}

.fd-auth-phone-heading {
    position: absolute;
    top: 80px;
    right: 15px;
    left: 15px;
}

.app-auth .fd-auth-phone-screen .fd-auth-phone-heading h1,
.app-auth .fd-auth-phone-screen .fd-auth-phone-heading h2 {
    margin: 0;
    color: #20d795 !important;
    font-weight: 400;
    text-align: right;
}

.app-auth .fd-auth-phone-screen .fd-auth-phone-heading h1 {
    font-size: 22px !important;
    line-height: 31px;
    transform: translate(-5px, 1px) scale(1.21, 1.06);
    transform-origin: right center;
}

.app-auth .fd-auth-phone-screen .fd-auth-phone-heading h2 {
    font-size: 20px;
    line-height: 30px;
    transform: translate(-5px, 4px) scaleX(1.05);
    transform-origin: right center;
}

.app-auth .fd-auth-phone-screen .fd-auth-phone-stage > p {
    position: absolute;
    top: 165px;
    right: 15px;
    left: 15px;
    max-width: none;
    margin: 0;
    color: #929aa5 !important;
    font-size: 12px !important;
    font-weight: 400;
    line-height: 22px;
    text-align: right;
    white-space: nowrap;
    transform: translateX(-24px) scaleX(1.09);
}

.app-auth .fd-auth-phone-screen .fd-auth-phone-stage form {
    position: absolute;
    top: 201px;
    right: 15px;
    left: 15px;
    display: block;
    margin: 0;
}

.fd-auth-phone-control {
    display: grid;
    width: 100%;
    height: 44px;
    grid-template-columns: minmax(0, 1fr) 78px;
    gap: 8px;
}

.fd-auth-national-phone {
    display: flex;
    direction: ltr;
    height: 44px;
    align-items: center;
    overflow: hidden;
    border: 1px solid #20d795;
    border-radius: 8px;
    background: #fff;
}

.fd-auth-national-phone > span {
    display: grid;
    width: 66px;
    height: 100%;
    flex: 0 0 66px;
    place-items: center;
    color: #25282b;
    font: 400 16px/1 Arial, sans-serif;
    transform: translateX(3px);
}

.app-auth .fd-auth-phone-screen .fd-auth-national-phone input {
    min-width: 0;
    width: 100%;
    height: 42px;
    min-height: 42px !important;
    padding: 9px 11px !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0;
    background: transparent;
    color: #303641;
    font: 400 13px/1.4 "Cairo", "Segoe UI", sans-serif;
    text-align: left;
    box-shadow: none !important;
}

.fd-auth-national-phone input::placeholder {
    color: #a6adba;
    opacity: 1;
}

.fd-auth-national-phone:focus-within {
    outline: 2px solid rgb(0 173 120 / 18%);
    outline-offset: 1px;
}

.fd-auth-country {
    display: flex;
    direction: ltr;
    height: 44px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid #20d795;
    border-radius: 8px;
    background: #fff;
}

.fd-auth-country-chevron {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: #171a1c;
    stroke-width: 2.25;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.fd-auth-country span {
    display: grid;
    width: 24px;
    height: 18px;
    place-items: center;
    overflow: hidden;
    font: 18px/1 "Segoe UI Emoji", sans-serif;
}

.fd-auth-country-flag {
    width: 24px;
    height: 16px;
    flex: 0 0 24px;
}

.fd-auth-create-account {
    display: block;
    width: max-content;
    margin: 60px auto 0;
    color: #00c989;
    font-size: 17px;
    font-weight: 400;
    line-height: 29px;
    text-align: center;
    transform: translate(-5px, 2px) scale(1.15, 1.1);
}

.app-auth .fd-auth-phone-screen .fd-auth-send-code {
    display: grid;
    width: calc(100% - 1px);
    height: 46px;
    min-height: 46px;
    margin: 74px 0 0;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 7px;
    background: linear-gradient(90deg, #20d795, #007c55);
    color: #fff;
    font: 400 17px/1 "Cairo", "Segoe UI", sans-serif;
    box-shadow: none;
    transform: translateX(-2px);
}

.app-auth .fd-auth-phone-screen .fd-auth-send-code:disabled {
    cursor: not-allowed;
    background: #bbbcbe !important;
    color: #fff;
    opacity: 1;
}

.app-auth .fd-auth-phone-screen .fd-auth-send-code:hover {
    transform: none !important;
}

.app-auth .fd-auth-phone-screen .fd-auth-send-code > span {
    transform: translateY(-2px) scaleX(1.14);
}

.fd-auth-phone-dots {
    position: absolute;
    top: 554px;
    right: 0;
    left: 0;
    display: flex;
    direction: ltr;
    justify-content: center;
    gap: 7px;
    transform: translateX(7px);
}

.fd-auth-phone-dots i {
    display: block;
    width: 13px;
    height: 13px;
    border: 1px solid #d8dfe3;
    border-radius: 50%;
    background: #fff;
}

.fd-auth-phone-dots i.active {
    border-color: #20d795;
    background: #20d795;
}

/* Country and currency selectors ---------------------------------------- */

body.app-auth:has(.fd-auth-selector-screen) {
    min-height: 100vh;
    min-height: 100dvh;
    padding-bottom: 0 !important;
    overflow-x: hidden;
    background: #fff;
}

body.app-auth:has(.fd-auth-selector-screen) > main {
    width: min(100%, 375px);
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    padding-top: 44px !important;
    overflow-x: hidden;
    overflow-y: auto;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
    scrollbar-width: none;
}

body.app-auth:has(.fd-auth-selector-screen) > main::-webkit-scrollbar {
    width: 0;
    height: 0;
}

body.app-auth:has(.fd-auth-selector-screen) .fd-system-status {
    height: 44px;
    padding: 18px 17px 0 22px;
    font-size: 16px;
}

body.app-auth:has(.fd-auth-selector-screen) .fd-system-status > b {
    font: 700 16px/16px "Segoe UI", Arial, sans-serif;
}

body.app-auth:has(.fd-auth-selector-screen) .auth-section {
    display: block;
    width: 100%;
    min-height: calc(100vh - 44px);
    min-height: calc(100dvh - 44px);
    padding: 0;
    overflow: visible;
    background: #fff;
}

.fd-auth-selector-shell {
    width: 100%;
    min-height: calc(100vh - 68px);
    min-height: calc(100dvh - 68px);
    margin-top: 24px;
    padding: 0 16px 21px;
    background: #fcfcfc;
}

.fd-auth-selector-header {
    position: relative;
    display: grid;
    height: 55px;
    place-items: center;
}

.fd-auth-selector-header h1 {
    margin: 0;
    color: #00ad78;
    font: 700 18px/1.45 "Cairo", "Segoe UI", sans-serif;
    text-align: center;
    transform: translateY(1px) scaleX(1.16);
}

.fd-auth-currency-selector .fd-auth-selector-header h1 {
    font-size: 15px;
    transform: translate(-5px, 0) scaleX(.99);
}

.fd-auth-selector-back {
    position: absolute;
    top: 14px;
    right: -3px;
    display: grid;
    width: 27px;
    height: 28px;
    place-items: center;
    color: #9b9c9c;
}

.fd-auth-selector-back svg {
    display: block;
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.85;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.fd-auth-selector-back:focus-visible {
    border-radius: 5px;
    outline: 2px solid #00ad78;
    outline-offset: 1px;
}

.fd-auth-selector-search {
    position: relative;
    display: block;
    width: 100%;
    height: 48px;
    margin: 0;
}

.app-auth .fd-auth-selector-search input[type="search"] {
    width: 100%;
    height: 48px;
    min-height: 48px !important;
    padding: 8px 17px 8px 54px !important;
    border: 1px solid #ffbd22 !important;
    border-radius: 8px !important;
    outline: 0;
    background: #f8fefc;
    color: #1d5688;
    font: 400 13px/1.5 "Cairo", "Segoe UI", sans-serif;
    text-align: right;
    box-shadow: none !important;
    appearance: none;
}

.app-auth .fd-auth-selector-search input[type="search"]::placeholder {
    transform: scaleX(1.07);
    transform-origin: right center;
}

.app-auth .fd-auth-selector-search input[type="search"]::-webkit-search-cancel-button {
    display: none;
}

.app-auth .fd-auth-selector-search input[type="search"]::placeholder {
    color: #c8cdcc;
    opacity: 1;
}

.app-auth .fd-auth-selector-search input[type="search"]:focus-visible {
    border-color: #00ad78 !important;
    outline: 2px solid rgb(0 173 120 / 18%);
    outline-offset: 1px;
}

.fd-auth-selector-search svg {
    position: absolute;
    top: 13px;
    left: 20px;
    width: 21px;
    height: 21px;
    fill: none;
    stroke: #00ad78;
    stroke-width: 2.15;
    stroke-linecap: round;
    pointer-events: none;
}

.fd-auth-selector-form {
    margin: 0;
}

.fd-auth-selector-options {
    max-height: calc(100vh - 197px);
    max-height: calc(100dvh - 197px);
    margin-top: 4px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
}

.fd-auth-selector-options::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.fd-auth-selector-option {
    display: flex;
    width: calc(100% - 9px);
    height: 61.5px;
    margin: 0 0 0;
    margin-right: auto;
    padding: 0 2px 0 15px;
    direction: rtl;
    align-items: center;
    gap: 11px;
    border: 0;
    border-bottom: 1px solid #d9d9d9;
    border-radius: 0;
    outline: 0;
    background: transparent;
    color: #1d5688;
    font-family: "Cairo", "Segoe UI", sans-serif;
    text-align: right;
    box-shadow: none;
    cursor: pointer;
    appearance: none;
}

.fd-auth-selector-option[hidden] {
    display: none !important;
}

.fd-auth-selector-option:hover {
    background: #f5fbf8;
}

.fd-auth-selector-option:focus-visible {
    position: relative;
    z-index: 1;
    outline: 2px solid #00ad78;
    outline-offset: -2px;
}

.fd-auth-selector-option img {
    display: block;
    width: 27px;
    height: 27px;
    flex: 0 0 27px;
    object-fit: cover;
}

.fd-auth-selector-name,
.fd-auth-selector-code {
    display: block;
    color: #1d5688;
    white-space: nowrap;
}

.fd-auth-country-selector .fd-auth-selector-name {
    overflow: hidden;
    font-size: 13px;
    font-weight: 400;
    text-overflow: ellipsis;
}

.fd-auth-country-selector .fd-auth-selector-code {
    margin-right: auto;
    font: 400 14px/1.2 "Cairo", "Segoe UI", sans-serif;
}

.fd-auth-currency-selector .fd-auth-selector-option {
    gap: 6px;
    padding-right: 1px;
    padding-left: 1px;
}

.fd-auth-currency-selector .fd-auth-selector-name {
    max-width: 226px;
    overflow: hidden;
    font: 400 14px/1.35 "Cairo", "Segoe UI", sans-serif;
    text-overflow: clip;
    transform: translate(-6px, 1px) scaleX(1.1);
    transform-origin: right center;
}

.fd-auth-currency-selector .fd-auth-selector-code {
    margin-right: auto;
    font: 400 15px/1.2 "Cairo", "Segoe UI", sans-serif;
    transform: translate(2px, 1px) scaleX(1.06);
    transform-origin: left center;
}

.fd-auth-selector-empty {
    margin: 42px 0;
    color: #7e8985;
    font-size: 13px;
    text-align: center;
}

/* The supplied transition reference is intentionally blank.  Rendering the
 * status bar only avoids inventing a reset-success claim for a GET request. */
.fd-auth-reset-done-screen {
    background: #fff;
}

/* Login --------------------------------------------------------------- */

body.app-auth:has(.fd-auth-login-screen) {
    min-height: 100vh;
    min-height: 100dvh;
    padding-bottom: 0 !important;
    overflow: hidden;
    background: #fff;
}

body.app-auth:has(.fd-auth-login-screen) > main {
    width: min(100%, 375px);
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    padding-top: 44px !important;
    overflow: hidden;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
}

body.app-auth:has(.fd-auth-login-screen) .fd-system-status {
    height: 44px;
    padding: 20px 12px 0 22px;
    font-size: 16px;
}

body.app-auth:has(.fd-auth-login-screen) .fd-system-status > b {
    font: 700 16px/16px "Segoe UI", Arial, sans-serif;
    transform: translateY(-3px) scale(1.13, 1.2);
    transform-origin: left top;
}

body.app-auth:has(.fd-auth-login-screen) .fd-system-status > span {
    position: absolute;
    top: 20px;
    right: 11px;
    display: block;
    width: 79px;
    height: 14px;
    transform: none;
}

body.app-auth:has(.fd-auth-login-screen) .fd-system-status > span > i {
    position: absolute;
    bottom: 0;
    width: 3px;
}

body.app-auth:has(.fd-auth-login-screen) .fd-system-status > span > i:nth-child(1) { left: 0; height: 5px; }
body.app-auth:has(.fd-auth-login-screen) .fd-system-status > span > i:nth-child(2) { left: 5px; height: 8px; }
body.app-auth:has(.fd-auth-login-screen) .fd-system-status > span > i:nth-child(3) { left: 10px; height: 11px; }
body.app-auth:has(.fd-auth-login-screen) .fd-system-status > span > i:nth-child(4) { left: 15px; width: 4px; height: 14px; }

body.app-auth:has(.fd-auth-login-screen) .fd-system-status > span > em {
    width: 15px;
    height: 11px;
    margin: 0 3px;
    position: absolute;
    top: 1px;
    left: 24px;
    border: 0;
    border-radius: 0;
    rotate: 0deg;
    background:
        radial-gradient(circle at 50% 100%, #090b0a 0 1.4px, transparent 1.7px),
        radial-gradient(circle at 50% 100%, transparent 0 3.7px, #090b0a 3.9px 5px, transparent 5.3px),
        radial-gradient(circle at 50% 100%, transparent 0 6.5px, #090b0a 6.7px 7.8px, transparent 8.1px);
    transform: scaleX(1.12);
}

body.app-auth:has(.fd-auth-login-screen) .fd-system-status > span > em::before,
body.app-auth:has(.fd-auth-login-screen) .fd-system-status > span > em::after {
    display: none;
}

body.app-auth:has(.fd-auth-login-screen) .fd-system-status > span > strong {
    position: absolute;
    top: 1px;
    left: 51px;
    width: 24px;
    height: 12px;
    border-color: #7d817f;
    background: #090b0a;
    box-shadow: none;
    transform: none;
}

body.app-auth:has(.fd-auth-login-screen) .fd-system-status > span > strong::after {
    position: absolute;
    top: 3px;
    right: -3px;
    width: 2px;
    height: 5px;
    border-radius: 0 2px 2px 0;
    background: #7d817f;
    content: "";
}

body.app-auth:has(.fd-auth-login-screen) .auth-section {
    display: block;
    width: 100%;
    height: calc(100vh - 44px);
    height: calc(100dvh - 44px);
    min-height: 0;
    padding: 0 15px;
    overflow: hidden;
    background: #fff;
}

.app-auth .fd-auth-login-screen .login-card {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 86px 5px 18px;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
}

.app-auth .fd-auth-login-screen .login-card::before,
.app-auth .fd-auth-login-screen .login-card::after {
    display: none;
}

.fd-auth-login-top {
    position: absolute;
    top: 24px;
    right: 5px;
    left: 5px;
    display: flex;
    direction: ltr;
    height: 29px;
    align-items: center;
    justify-content: space-between;
}

.fd-auth-login-top .fd-auth-language {
    position: relative;
    width: 107px;
    height: 29px;
}

.fd-auth-login-top .fd-auth-language > img {
    position: absolute;
    top: 6px;
    left: 7px;
    display: block;
    width: 18px;
    height: 17px;
    max-width: none;
}

.fd-auth-login-top .fd-auth-language > span {
    position: absolute;
    top: 1px;
    right: 10px;
    display: grid;
    height: 29px;
    place-items: center;
    font-weight: 500;
    transform: scaleX(1.28);
    transform-origin: right center;
}

.fd-auth-login-top .fd-auth-logo {
    width: 80px;
    height: 29px;
}

.fd-auth-login-top .fd-auth-logo img {
    width: 80px;
    height: 29px;
    max-width: none;
    transform: none;
}

.app-auth .fd-auth-login-screen:not(.is-provider-notice) .login-card h1 {
    color: #00a269 !important;
    font-weight: 600;
    transform: translate(-1px, -5px) scale(1.03, .96);
}

.app-auth .fd-auth-login-screen:not(.is-provider-notice) .auth-field input:not([type="checkbox"]) {
    width: calc(100% + 2px);
    margin-left: -1px;
    font-size: 16px;
    font-weight: 400;
    padding-right: 49px !important;
    border-color: #e0e3ea !important;
    color: #2e3442;
    transform: translateX(1px);
}

.app-auth .fd-auth-login-screen:not(.is-provider-notice) .auth-field input::placeholder {
    color: #9ba3ae;
    opacity: 1;
}

.app-auth .fd-auth-login-screen:not(.is-provider-notice) .auth-field-mail input::placeholder {
    word-spacing: .8px;
}

.app-auth .fd-auth-login-screen:not(.is-provider-notice) .auth-field-lock input::placeholder {
    word-spacing: 3px;
}

.app-auth .fd-auth-login-screen:not(.is-provider-notice) .auth-field-mail i {
    right: 18px;
    top: 21px;
}

.app-auth .fd-auth-login-screen:not(.is-provider-notice) .fd-auth-field-icon {
    position: absolute;
    z-index: 2;
    display: block;
    max-width: none;
    pointer-events: none;
}

.app-auth .fd-auth-login-screen:not(.is-provider-notice) .fd-auth-login-mail {
    top: 17px;
    right: 13px;
    width: 27px;
    height: 27px;
}

.app-auth .fd-auth-login-screen:not(.is-provider-notice) .fd-auth-login-eye {
    top: 17px;
    left: 6px;
    width: 28px;
    height: 27px;
}

.app-auth .fd-auth-login-screen:not(.is-provider-notice) .fd-auth-login-lock {
    top: 15px;
    right: 15px;
    width: 24px;
    height: 28px;
}

.app-auth .fd-auth-login-screen:not(.is-provider-notice) .auth-field-lock i {
    top: 26px;
}

.app-auth .fd-auth-login-screen:not(.is-provider-notice) .auth-field-lock::after {
    display: none;
}

.app-auth .fd-auth-login-screen:not(.is-provider-notice) .auth-field-lock::before {
    display: none;
}

.app-auth .fd-auth-login-screen:not(.is-provider-notice) .auth-options > a {
    margin-right: 0;
    margin-left: auto;
    color: #aeb9bd;
    font-size: 12px;
    font-weight: 300;
    transform: translateY(1px) scaleX(1.03);
    transform-origin: right center;
}

.app-auth .fd-auth-login-screen:not(.is-provider-notice) form > .button {
    background: #1ed68e !important;
    font-weight: 400;
    transform: translateY(1px);
}

.app-auth .fd-auth-login-screen:not(.is-provider-notice) form > .button > span {
    transform: none;
}

.app-auth .fd-auth-login-screen:not(.is-provider-notice) .button-ghost,
.app-auth .fd-auth-login-screen:not(.is-provider-notice) .social-login {
    position: relative;
    transform: translateY(1px);
}

.app-auth .fd-auth-login-screen:not(.is-provider-notice) .button-ghost {
    border-color: #1ed68e !important;
    color: #1ed68e;
    font-weight: 400;
}

.app-auth .fd-auth-login-screen:not(.is-provider-notice) .button-ghost > span {
    transform: scaleX(1.04);
}

.app-auth .fd-auth-login-screen:not(.is-provider-notice) .auth-divider {
    transform: none;
}

.app-auth .fd-auth-login-screen:not(.is-provider-notice) .auth-divider > span {
    transform: translateY(3px);
}

.app-auth .fd-auth-login-screen:not(.is-provider-notice) .auth-divider::before,
.app-auth .fd-auth-login-screen:not(.is-provider-notice) .auth-divider::after {
    background: #ececec;
}

.app-auth .fd-auth-login-screen:not(.is-provider-notice) .social-login {
    height: 42px;
    min-height: 42px;
    background: #000;
    font-size: 14px;
    font-weight: 400;
}

.app-auth .fd-auth-login-screen:not(.is-provider-notice) .auth-terms {
    color: #919294;
    font-size: 10px;
    font-weight: 400;
    line-height: 2.3;
    white-space: nowrap;
    transform: translate(2px, -2px) scaleX(1.25);
}

@media (min-width: 376px) {
    .fd-auth-status-reference {
        left: 50%;
        transform: translateX(-50%);
    }
}


@media (max-width: 340px) {
    .fd-auth-language {
        width: 98px;
        font-size: 12px;
    }

    .fd-auth-phone-control {
        grid-template-columns: minmax(0, 1fr) 72px;
        gap: 6px;
    }

    .fd-auth-national-phone > span {
        width: 58px;
        flex-basis: 58px;
    }

    .fd-auth-selector-shell {
        padding-inline: 12px;
    }
}
