* { box-sizing: border-box; }
body { margin: 0; padding: 32px 16px; background: #f3f6fa; color: #172b42; font: 16px/1.5 system-ui, sans-serif; }
.auth-card { max-width: 480px; margin: 0 auto; background: #fff; border: 1px solid #d7e0e9; border-radius: 12px; padding: 32px; box-shadow: 0 8px 30px #172b4210; }
.auth-logo { display: block; max-width: 200px; max-height: 64px; margin: 0 auto 24px; }
h1 { font-size: 1.75rem; margin: 0 0 20px; }
label { display: block; font-weight: 600; margin: 16px 0 6px; }
input { width: 100%; max-width: none; min-height: 44px; border: 1px solid #7f90a3; border-radius: 6px; padding: 10px 12px; font: inherit; }
input[readonly] { background: #f3f6fa; }
button, .auth-button { min-height: 44px; padding: 10px 16px; border-radius: 6px; border: 1px solid #175c99; background: #175c99; color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
button[type=submit] { width: 100%; margin-top: 20px; }
button.secondary { background: white; color: #175c99; margin-top: 12px; width: 100%; }
button:disabled { opacity: .65; cursor: wait; }
input:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid #b26d00; outline-offset: 3px; }
a { color: #175c99; text-underline-offset: 3px; }
.auth-message:not(:empty), .validation-summary-errors { padding: 12px; margin: 16px 0; background: #fff5dd; border-left: 4px solid #946000; color: #614000; overflow-wrap: anywhere; }
.auth-links { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 24px; }
.auth-help { color: #455970; font-size: .9rem; }
.phone-fields { display: grid; grid-template-columns: 100px 1fr; gap: 12px; }
.password-field { display: flex; align-items: stretch; gap: 8px; }
.password-field input { min-width: 0; }
.password-field button { background: white; color: #175c99; padding: 8px; }
.auth-providers { border-top: 1px solid #d7e0e9; margin-top: 24px; padding-top: 12px; }
.auth-providers button[type=submit] { background: white; color: #172b42; border-color: #7f90a3; margin-top: 10px; }
[hidden] { display: none !important; }
@media (max-width: 480px) { body { padding: 16px 8px; } .auth-card { padding: 24px 18px; } }

.phone-fields.phone-enhanced { display: block; }
.phone-fields > div { min-width: 0; }
.phone-fields .intl-tel-input { width: 100%; }
.phone-fields .intl-tel-input .country-list { max-width: min(380px, calc(100vw - 72px)); white-space: normal; color: #172b42; }
.phone-fields .intl-tel-input .country { padding: 8px 10px; }
.phone-fields .selected-flag:focus-visible { outline: 3px solid #b26d00; outline-offset: 2px; }
