/* Matches login_page.dart: AppColors.brand, 28px header, 28px card corners. */
body.auth-screen { background: #10aeff; }
.login.native-auth {
  --auth-blue: #10aeff;
  --auth-muted: #a8acb3;
  width: 100%; max-width: 480px; margin: 0 auto; padding: 0;
  min-height: 100vh; min-height: var(--app-height,100dvh);
  display: flex; flex-direction: column; background: var(--auth-blue); color: #1a1a1a;
}
.native-auth .auth-header { padding: calc(env(safe-area-inset-top,0px) + 28px) 28px 18px; flex-shrink: 0; }
.native-auth .auth-header h1 { margin: 0 0 18px; font-size: 28px; line-height: 1.2; font-weight: 700; letter-spacing: 0; }
.native-auth .auth-tabs { display: flex; align-items: flex-start; gap: 28px; }
.native-auth .auth-tabs button {
  min-height: 35px; padding: 0 0 10px; position: relative;
  color: #ffffffa6; font-size: 17px; line-height: 22px; font-weight: 400;
}
.native-auth .auth-tabs button.active { color: #fff; font-weight: 600; }
.native-auth .auth-tabs button.active::after { content: ''; position: absolute; left: 0; bottom: 0; width: 28px; height: 3px; border-radius: 2px; background: #fff; }
.native-auth .auth-card { display: flex; flex: 1; min-height: 400px; padding: 24px 24px calc(20px + env(safe-area-inset-bottom,0px)); border-radius: 28px 28px 0 0; background: #fff; }
.native-auth #auth-form { display: flex; flex-direction: column; width: 100%; min-width: 0; }
.native-auth .visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.native-auth .auth-field { margin: 0; gap: 10px; }
.native-auth #auth-password-field { margin-top: 18px; }
.native-auth .auth-field label { font-size: 15px; line-height: 20px; font-weight: 600; color: #191919; }
.native-auth .field-wrap input {
  height: 48px; padding: 13px 44px 13px 18px; border: 1.2px solid transparent;
  border-radius: 12px; background: #f5f6f8; color: #1a1a1a;
  font-size: 16px; font-weight: 400; line-height: 20px; outline: none; width: 100%;
}
.native-auth .field-wrap input::placeholder { color: #b2b2b2; opacity: 1; }
.native-auth .field-wrap input:focus { border-color: var(--auth-blue); }
.native-auth #password-visibility, .native-auth #account-history {
  position: absolute; right: 2px; top: 2px; width: 44px; height: 44px;
  display: grid; place-items: center; padding: 12px; color: #b2b2b2; border-radius: 10px;
}
.native-auth #password-visibility .ui-icon { width: 18px; height: 18px; }
.native-auth #account-history .ui-icon { width: 14px; height: 14px; transform: rotate(90deg); }
.native-auth #account-history[aria-expanded=true] .ui-icon { transform: rotate(-90deg); }
.native-auth .auth-links { display: flex; justify-content: flex-end; margin-top: 14px; margin-bottom: 22px; }
.native-auth #forgot-password { display: inline-flex; align-items: center; gap: 4px; color: var(--auth-muted); font-size: 13px; min-height: 20px; padding: 0; }
.native-auth #forgot-password .ui-icon { width: 11px; height: 11px; }
.native-auth .primary { height: 50px; padding: 12px 18px; border-radius: 12px; background: var(--auth-blue); font-size: 17px; line-height: 24px; font-weight: 600; box-shadow: 0 2px 5px #10aeff33; }
.native-auth .primary:disabled { opacity: .45; }
.native-auth #auth-error { margin: 12px 0 0; line-height: 1.6; }
.native-auth #auth-error:empty { display: none; }
.native-auth .consent { justify-content: center; align-items: flex-start; gap: 8px; margin: auto 0 0; padding-top: 28px; font-size: 12px; line-height: 20px; color: var(--auth-muted); font-weight: 400; }
.native-auth .consent span { max-width: 100%; }
.native-auth .consent a { color: var(--auth-blue); white-space: nowrap; }
.native-auth .consent input { appearance: none; -webkit-appearance: none; flex-shrink: 0; width: 19px; min-width: 19px; height: 19px; margin: 0; padding: 0; border: 1.5px solid #b2b2b2; border-radius: 50%; background: #fff; position: relative; }
.native-auth .consent input:checked { border-color: var(--auth-blue); background: var(--auth-blue); }
.native-auth .consent input:checked::after { content: ''; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px; border: solid #fff; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.native-auth .saved-account { margin-top: 10px; display: flex; align-items: center; border-radius: 12px; background: #f5f6f8; }
.native-auth #use-saved-account { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; padding: 12px; text-align: left; }
.native-auth #use-saved-account > .ui-icon { width: 30px; height: 30px; color: var(--auth-blue); }
.native-auth .saved-account strong { display: block; font-size: 15px; }
.native-auth .saved-account small { display: block; font-size: 12px; color: var(--auth-muted); margin-top: 6px; }
.native-auth #remove-saved-account { padding: 12px; color: #b2b2b2; }
.native-auth #remove-saved-account .ui-icon { width: 14px; height: 14px; }
.native-auth.register-mode #auth-password-field { margin-top: 10px; }
.native-auth.register-mode .auth-field { gap: 6px; }
.native-auth.register-mode .auth-field label { font-size: 14px; }
.native-auth.register-mode .field-wrap input { height: 44px; padding-top: 11px; padding-bottom: 11px; }
.native-auth.register-mode #password-visibility { top: 0; }
.native-auth.register-mode .auth-links { display: none; }
.native-auth.register-mode .primary { margin-top: 16px; }
.native-auth.register-mode .primary:disabled { background: #bdbdbd; box-shadow: none; }
@media (min-width:700px) {
  .login.native-auth { box-shadow: 0 0 40px #006ec31a; }
}
@media (max-width:350px) {
  .native-auth .auth-header { padding-left: 24px; padding-right: 24px; }
  .native-auth .auth-card { padding-left: 20px; padding-right: 20px; }
  .native-auth .consent { font-size: 11px; gap: 6px; }
}
