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

:root { --action-radius: 6px; }

/* Approved authentication composition: Private Ledger, variant 2 */
html, body.login-standalone, .login-route, .login-route .app { background: #2b2b2b; }
body.login-standalone { margin: 0; font-family: 'Onest', system-ui, sans-serif; touch-action: manipulation; }
.login-standalone * { box-sizing: border-box; }
.login-standalone button, .login-standalone input { font-family: inherit; }
.login-route .app > header, .login-route #operationSearchPopover, .login-route #bottomNav { display: none; }
.login-route #view { max-width: none; min-height: 100vh; min-height: 100dvh; margin: 0; padding: 0; }
.login-route .overlay, .login-route .toast { display: none !important; }
.login-screen { min-height: 100vh; min-height: 100dvh; display: flex; justify-content: center; overflow: hidden; background: #2b2b2b; color: #f2efe9; }
.login-shell { width: calc(100% - 46px); max-width: 430px; padding-top: clamp(136px, 26vh, 220px); }
.login-brand { text-align: center; }
.login-brand-image { display: block; width: 190px; height: auto; margin: 0 auto; }
.login-form { margin-top: 64px; }
.login-phone-field { height: 58px; display: grid; grid-template-columns: auto minmax(0, 1fr); border: 1px solid #595959; background: transparent; }
.login-country-trigger { min-width: 88px; height: 56px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 12px; border: 0; border-right: 1px solid #595959; background: transparent; color: #f2efe9; font-size: 12px; font-weight: 400; }
.login-country-trigger i { width: 0; height: 0; border-right: 4px solid transparent; border-left: 4px solid transparent; border-top: 5px solid #8c8b87; }
.login-country-trigger:focus-visible { outline: 2px solid #bdbbb7; outline-offset: -4px; }
.login-phone-field input, .login-code-input { width: 100%; min-width: 0; height: 56px; padding: 0 17px; border: 0; outline: 0; background: transparent; color: #f2efe9; caret-color: #f2efe9; font-size: 16px; font-weight: 400; font-variant-numeric: tabular-nums; }
.login-phone-field:focus-within, .login-code-input:focus { border-color: #9b9b98; box-shadow: none; outline: 2px solid #9b9b98; outline-offset: 2px; }
.login-phone-field input::placeholder, .login-code-input::placeholder { color: #8c8b87; opacity: 1; }
.login-submit { width: 100%; height: 56px; display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 14px; padding: 0 18px; border: 1px solid #f2efe9; border-radius: var(--action-radius); background: #f2efe9; color: #2b2b2b; font-size: 11px; line-height: 11px; font-weight: 600; }
.login-submit:active { background: #dfd9ce; }
.login-submit:disabled, .login-secondary:disabled { opacity: .55; cursor: wait; }
.login-secondary { width: 100%; height: 50px; margin-top: 10px; border: 1px solid #6b6a67; border-radius: var(--action-radius); background: transparent; color: #f2efe9; font-size: 11px; font-weight: 600; }
.login-submit:focus-visible, .login-secondary:focus-visible, .login-change-phone:focus-visible { outline: 2px solid #bdbbb7; outline-offset: 3px; }
.login-phone-field input:focus-visible, .login-code-input:focus-visible { outline: 0; }
.login-code-form { margin-top: 64px; }
.login-code-note { margin: 0 0 14px; color: #b4b1aa; font-size: 11px; line-height: 16px; font-weight: 400; }
.login-code-input { border: 1px solid #595959; text-align: center; letter-spacing: .28em; }
.login-recovery-input { font-size: 12px; letter-spacing: .08em; }
.login-error { min-height: 21px; margin: 10px 0 -7px; color: #d7a98d; font-size: 10px; line-height: 14px; font-weight: 500; }
.login-change-phone { width: 100%; min-height: 44px; margin-top: 8px; border: 0; background: transparent; color: #b4b1aa; font-size: 11px; line-height: 11px; font-weight: 600; }
.login-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.login-country-sheet { position: fixed; z-index: 100; inset: 0; display: flex; align-items: flex-end; color: #2b2b2b; }
.login-country-scrim { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(0,0,0,.56); }
.login-country-sheet > section { position: relative; width: 100%; max-height: min(72vh, 620px); padding: 14px 23px calc(20px + env(safe-area-inset-bottom)); overflow: hidden; background: #f2efe9; }
.login-country-sheet header { height: 44px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #d4d0c7; }
.login-country-sheet header strong { font-size: 15px; }
.login-country-sheet header button { width: 44px; height: 44px; border: 0; background: transparent; font-size: 21px; font-weight: 400; }
.login-country-search { display: block; margin: 14px 0 6px; }
.login-country-search input { width: 100%; height: 48px; padding: 0 14px; border: 1px solid #bdb8ae; border-radius: 0; background: transparent; color: #2b2b2b; font-size: 16px; }
.login-country-options { max-height: min(48vh, 390px); overflow-y: auto; }
.login-country-options button { width: 100%; min-height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 0; border: 0; border-bottom: 1px solid #d4d0c7; background: transparent; text-align: left; font-size: 12px; }
.login-country-options button[aria-pressed="true"] { font-weight: 600; }
.login-country-options b { font-weight: 500; }
@media (max-height: 650px) { .login-shell { padding-top: 72px; } .login-form, .login-code-form { margin-top: 42px; } }
@media (min-width: 760px) { .login-shell { width: min(430px, calc(100% - 64px)); padding-top: clamp(126px, 20vh, 200px); } }
