/* Login / Register Figma frames 93:3852, 88:3705, 16:1268, 96:3936. */
.auth-card .auth-bale-secondary{display:block;width:100%;min-height:42px;margin:10px 0 0;padding:8px 12px;background:#e9f7f8;color:#004c6a;border:1px solid #cae5e7;border-radius:12px;font:500 14px/24px Dana,Tahoma,sans-serif;cursor:pointer}
.auth-card .auth-bale-secondary:hover{background:#d8f0f1}
.auth-method-divider{display:flex;align-items:center;gap:10px;margin:10px auto;color:#83868e;font:400 12px/20px Dana,Tahoma,sans-serif;max-width:160px}
.auth-method-divider:before,.auth-method-divider:after{content:"";flex:1;height:1px;background:#d8dae3}
.auth-card .auth-method-divider+.auth-bale-secondary{margin-top:0}
.auth-bale-wait p{font-size:13px;line-height:1.9;margin:12px 0}
.auth-bale-wait .auth-bale-open{text-decoration:none;margin-top:12px}
.auth-card .auth-bale-back-form{margin-top:12px;text-align:center}
.auth-bale-back{border:0;background:none;padding:8px;color:#004c6a;font:500 13px/22px Dana,Tahoma,sans-serif;cursor:pointer}
.auth-bale-back:hover{color:#00aaa5}
.auth-bale-web{display:block;width:fit-content;max-width:100%;margin:6px auto 0;text-align:center;text-decoration:none}
.auth-bale-retry{flex:none;border:0;background:none;padding:0;margin-right:auto;color:inherit;font:inherit;font-weight:600;white-space:nowrap;cursor:pointer}
.auth-bale-retry:hover{opacity:.75}
.auth-bale-wait .auth-message{flex-wrap:wrap;align-items:center}
.auth-bale-wait .auth-message>[data-auth-message-icon],.auth-bale-wait .auth-message>[data-auth-success-icon]{display:flex;align-items:center;flex:none;line-height:0}
.auth-bale-wait .auth-message .visitor-icon{display:block;flex:none;margin:0}
.auth-bale-wait [data-auth-message-text]{flex:1;min-width:140px}
body.mofid-auth{--ink:#004c6a;--green:#00aaa5;margin:0;background:#fff;color:#2f3242;font:500 16px/1.55 Dana,Tahoma,sans-serif}
html:has(body.mofid-auth){scrollbar-width:none}
html:has(body.mofid-auth)::-webkit-scrollbar{display:none}
.mofid-auth [hidden]{display:none!important}
.auth-layout{display:grid;grid-template-columns:1fr 1fr;direction:ltr;min-height:100dvh}
.auth-visual{position:sticky;top:0;height:100dvh;min-height:0;overflow:hidden;background:#003c4d}
/* The desktop source retains the original poster's detail. The picture source
   follows the same breakpoint as the stacked layout below. */
.auth-visual>picture,.auth-visual>picture>img{position:absolute;inset:0;width:100%;height:100%}
.auth-visual>picture>img{object-fit:cover;object-position:center}
.auth-panel{display:flex;align-items:center;direction:rtl;min-width:0;padding:48px 80px 48px 64px}
.auth-card{width:100%;max-width:576px;margin:0 auto;padding:0;border:0;border-radius:0;background:#fff;animation:none}
.auth-logo{display:block;width:max-content;max-width:100%;margin:0 0 24px auto;line-height:0}
.auth-logo img{display:block;max-width:100%;height:auto}
.auth-introduction{max-width:100%}
.auth-introduction h1{margin:0;color:#004c6a;font-size:24px;line-height:37px;font-weight:500;letter-spacing:0}
.auth-introduction p{margin:10px 0 0;color:#83868e;font-size:16px;line-height:25px;font-weight:500}
.auth-card form{margin:0}
.auth-card .auth-mobile-form{margin-top:40px}
.auth-field{position:relative;padding-top:17px}
.auth-field label{position:absolute;top:0;right:22px;margin:0;padding:0 12px;background:white;color:#2f3242;font-size:16px;line-height:34px;z-index:1}
.auth-field input:not([type=hidden]){display:block;width:100%;height:70px;min-height:70px;border:1px solid #d8dae3;border-radius:12px;background:#fff;padding:17px 23px;color:#2f3242;font:400 16px/34px Dana,Tahoma,sans-serif;letter-spacing:0;direction:ltr;text-align:left;outline:none;box-shadow:none}
.auth-field input::placeholder{color:#83868e;font:inherit;letter-spacing:0;opacity:1}
.auth-field input:focus,.auth-field input:focus-visible{outline:none;border-color:#00aaa5;box-shadow:none}
.auth-field input[aria-invalid=true]{border-color:#c34b54!important;box-shadow:none}
.auth-field input[aria-invalid=true][data-invalid-kind=warning]{border-color:#b1812e!important}
.auth-submit{display:flex;align-items:center;justify-content:center;width:100%;min-height:56px;margin-top:24px;border:0;border-radius:12px;padding:12px 20px;background:#00aaa5;color:#fff;font:500 16px/25px Dana,Tahoma,sans-serif;cursor:pointer}
.auth-submit:hover{background:#009a96}
.auth-submit:disabled{opacity:1;cursor:wait}
.auth-card .auth-edit-form{display:flex;justify-content:flex-end;margin:33px 0 0}
.auth-edit-form button{display:flex;align-items:center;gap:8px;border:0;border-radius:6px;background:#e9f7f8;color:#00aaa5;padding:8px 12px;font:600 16px/25px Dana,Tahoma,sans-serif;white-space:nowrap}
.auth-edit-form picture,.auth-edit-form img{display:block}
.auth-edit-form button:hover{color:#008d89}
.auth-edit-form button:disabled{opacity:1;cursor:default}
.auth-resend-row{display:flex;justify-content:flex-start;height:21px;margin-top:16px;padding-right:8px}
.auth-resend-row button{display:flex;align-items:center;gap:6px;border:0;padding:10px 0;margin:-10px 0;min-height:41px;background:none;color:#00aaa5;font:500 14px/21px Dana,Tahoma,sans-serif;cursor:pointer}
.auth-resend-row button:disabled{color:#83868e;opacity:1;cursor:default}
.auth-resend-row img{display:block;flex:none}
.auth-message{display:flex;align-items:flex-start;gap:6px;margin:8px 0 0;padding:8px 12px;border:1px solid #efbdc1;border-radius:8px;background:#fff3f3;color:#b43b44;font-size:14px;line-height:22px}
.auth-message .visitor-icon{width:16px;height:16px;margin-top:3px}
.auth-message[data-kind=success]{color:#007f7b;border-color:#99d9d5;background:#e9f7f8}
.auth-message[data-kind=warning]{color:#936215;border-color:#ead6a6;background:#fff8e9}
.auth-message[data-kind=info]{color:#004c6a;border-color:#c5dce5;background:#f0f7fb}
.auth-scan-context{display:flex;flex-direction:column;gap:3px;margin-top:16px;padding:8px 12px;border:1px solid #c5dce5;border-radius:8px;background:#f0f7fb;color:#004c6a;font-size:12px;line-height:20px}
.auth-scan-context strong{font-weight:600}
@media(min-width:901px) and (max-width:1200px){.auth-panel{padding-inline:32px}}
@media(max-width:900px),(orientation:portrait){
 /* iOS may scroll the document while also shrinking the visual viewport.
    Keep one bounded scroll surface, so keyboard panning cannot expose an empty
    document below the form. Android shares this bounded surface so the page
    stays fixed. Without JS, normal document scrolling is retained. */
 html.auth-viewport-contained{height:100%;overflow:hidden;overscroll-behavior:none}
 .auth-viewport-contained body.mofid-auth{position:fixed;inset:0;width:100%;height:100%;overflow:hidden}
 .auth-viewport-contained .auth-layout{position:absolute;inset:0 0 auto;transform:translateY(var(--auth-viewport-offset,0px));overflow-x:hidden;overflow-y:auto;overscroll-behavior-y:contain;overflow-anchor:none;scroll-behavior:auto}
 .auth-viewport-contained.auth-keyboard-open .auth-card{padding-bottom:16px}
 .mofid-auth{font-size:14px}
 /* The form determines its own height; the image gives up space first. */
 .auth-layout{--auth-overlap:20px;position:relative;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;height:var(--auth-viewport-height,100dvh);min-height:0}
 .auth-visual{grid-column:1;grid-row:1;position:relative;top:auto;height:auto;min-height:0;margin-bottom:calc(-1 * var(--auth-overlap))}
 .auth-visual>picture>img{object-position:center bottom}
 .auth-panel{grid-column:1;grid-row:2;position:relative;z-index:1;padding:0 24px;direction:rtl}
 .auth-card{min-height:0;padding:20px 24px calc(16px + env(safe-area-inset-bottom,0px));border-radius:24px;max-width:576px}
 .auth-logo{width:220px;margin:0 auto 16px}
 .auth-introduction{width:100%;margin-right:0;margin-left:auto}
 .auth-introduction h1{font-size:18px;line-height:28px}
 .auth-introduction p{font-size:13px;line-height:20px}
 .auth-card .auth-mobile-form{margin-top:24px}
 .auth-field label{font-size:14px}
 .auth-field input:not([type=hidden]){height:56px;min-height:56px;padding-block:10px}
 .auth-field input::placeholder{font-size:13px}
 .auth-submit{margin-top:16px}
 .auth-card .auth-edit-form{margin:16px 0 4px}
 .auth-edit-form button{font-size:12px;line-height:19px}
 .auth-edit-form picture{width:20px;height:20px}
 .auth-edit-form img{max-width:100%;height:auto}
 .auth-resend-row{margin-top:12px}
 .auth-message{font-size:12px;line-height:20px}
 .auth-message .visitor-icon{margin-top:2px}
 /* Give the poster a small overlap only while there is useful image space.
    Keyboard mode prioritizes readable controls; unusually short screens retain
    the bounded inner scroller instead of clipping actions or feedback. */
 .auth-compact .auth-layout{--auth-overlap:12px}
 .auth-compact .auth-card{padding-top:16px}
 .auth-compact .auth-logo{width:180px;margin-bottom:10px}
 .auth-compact .auth-introduction p{display:none}
 .auth-compact .auth-card .auth-mobile-form{margin-top:12px}
 .auth-compact .auth-card .auth-edit-form{margin-top:10px}
 .auth-keyboard-open .auth-layout{--auth-overlap:0px}
 .auth-keyboard-open .auth-logo{display:none}
 .auth-keyboard-open .auth-introduction h1{font-size:16px;line-height:24px}
 .auth-keyboard-open .auth-card{padding-top:12px}
 .auth-keyboard-open .auth-submit{min-height:48px;padding-block:8px;margin-top:12px}
 .auth-keyboard-open .auth-card .auth-bale-secondary{min-height:38px;margin-top:8px;padding-block:6px}
}
@media(max-width:360px){.auth-panel{padding-inline:16px}.auth-card{padding-inline:16px}.auth-field label{right:14px}}

.auth-bale-otp-help{font-size:13px;line-height:1.9;color:#004c6a;margin:0 0 14px}
