/* Account entry: one branded illustration, with the task kept in a quiet form. */
.auth-screen {
  --account-forest: #003d31;
  --account-emerald: #087c59;
  --account-paper: #fff;
  --account-ink: #102b21;
  --account-muted: #53685e;
  --account-line: #dce7e1;
  --account-gradient: linear-gradient(130deg, #002f29 0%, #006044 55%, #149567 100%);
  min-height: 100dvh;
  max-width: none;
  padding: 40px 24px;
  display: grid;
  place-items: center;
  background: #eaf2ee;
}
.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(100%, 980px);
  min-height: 640px;
  background: var(--account-paper);
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 28px 90px #003d3114;
}
.auth-hero {
  background: var(--account-gradient);
  color: #fff;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  min-width: 0;
}
.auth-brand { display: flex; align-items: center; gap: 12px; }
.auth-mark { display: grid; place-items: center; width: 48px; height: 48px; flex: 0 0 48px; background: #fff; border-radius: 14px; }
.auth-mark img { width: 40px; height: 40px; object-fit: contain; }
.auth-brand strong { display: block; font-size: 20px; letter-spacing: -.5px; line-height: 26px; font-weight: 700; }
.auth-brand span:not(.auth-mark) { display: block; font-size: 12px; line-height: 18px; color: #d1ebdf; }
.auth-art { text-align: center; margin: auto -16px; }
.auth-art img { display: block; width: 100%; height: auto; object-fit: contain; }
.auth-art p { font-size: 13px; line-height: 20px; color: #d1ebdf; margin: 12px 0 0; }
.auth-panel {
  max-width: none;
  min-width: 0;
  padding: 48px 40px;
  align-self: center;
  border: 0;
  border-radius: 0;
  background: var(--account-paper);
  box-shadow: none;
}
.auth-heading h1 { margin: 0 0 8px; font-size: 29px; line-height: 35px; letter-spacing: -.8px; font-weight: 700; color: var(--account-ink); }
.auth-heading > p:last-of-type { margin: 0; font-size: 15px; line-height: 22px; color: var(--account-muted); }
.auth-panel form { display: grid; margin-top: 24px; gap: 8px; }
.auth-panel label { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--account-ink); margin: 12px 0 0; }
.auth-panel label:first-child { margin-top: 0; }
.auth-panel input { width: 100%; font: inherit; min-height: 54px; height: 54px; padding: 14px 16px; border: 1.5px solid var(--account-line); border-radius: 14px; color: var(--account-ink); background: #f5f8f7; font-size: 16px; box-shadow: none; }
.auth-panel input::placeholder { color: #65776b; opacity: 1; }
.auth-panel input:focus-visible { border-color: var(--account-emerald); outline: 3px solid #087c5926; outline-offset: 1px; }
.auth-password { position: relative; }
.auth-password input { padding-right: 70px; }
.auth-password button { position: absolute; top: 5px; right: 4px; min-height: 44px; height: 44px; width: 58px; font-size: 12px; color: #006044; background: none; border: 0; font-weight: 600; }
.auth-panel .auth-forgot { justify-self: end; background: none; border: 0; padding: 0; min-height: 44px; margin: -2px 0 0; font-size: 14px; font-weight: 600; color: #006044; }
.auth-panel .primary { margin-top: 10px; min-height: 54px; border-radius: 14px; padding: 12px 16px; background: linear-gradient(105deg, #087c59, #00513d); color: #fff; font-size: 15px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 12px; }
.auth-panel .primary svg { width: 18px; height: 18px; }
.auth-panel .primary:hover { background: #00513d; }
.auth-panel button:focus-visible { outline: 3px solid #087c5966; outline-offset: 3px; }
.auth-google { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; margin-top: 24px; min-height: 54px; border-radius: 14px; font-size: 14px; font-weight: 600; border: 1px solid var(--account-line); background: #fff; color: var(--account-ink); }
.auth-social-buttons { display: grid; gap: 12px; margin-top: 24px; }
.auth-social-buttons .auth-google { margin-top: 0; }
.auth-social-buttons .auth-apple { background: #111; border-color: #111; color: #fff; }
.auth-social-buttons button:disabled { cursor: not-allowed; opacity: .55; }
.auth-provider-status { margin: 10px 0 0; color: var(--account-muted); font-size: 13px; line-height: 20px; }
.auth-provider-status:empty { display: none; }
.auth-panel .auth-retry { width: auto; text-decoration: underline; text-underline-offset: 3px; }
.auth-divider { display: flex; align-items: center; gap: 12px; color: var(--account-muted); font-size: 12px; margin: 16px 0 -8px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--account-line); }
.auth-links { margin-top: 24px; text-align: center; }
.auth-links > p { margin: 0; color: var(--account-muted); font-size: 12px; line-height: 18px; }
.auth-panel .text-button { width: 100%; min-height: 44px; font-size: 14px; font-weight: 600; color: #006044; text-align: center; }
.auth-panel #auth-message:empty { display: none; }
.auth-address { display: block; overflow-wrap: anywhere; font-size: 14px; color: var(--account-ink); margin-top: 10px; }
.auth-panel #auth-message:not(:empty) { margin: 8px 0; font-size: 14px; line-height: 21px; background: #eaf3ec; color: #244d3c; padding: 12px; border-radius: 14px; }
.auth-secondary .auth-art { opacity: .8; }
.auth-panel .auth-agreement { display:flex; align-items:flex-start; gap:10px; margin:16px 0; font-size:13px; line-height:20px; font-weight:400; color:#465d54; cursor:pointer; padding:8px 0; }
.auth-panel .auth-agreement input[type="checkbox"] { flex:0 0 18px; width:18px; height:18px; min-height:18px; margin:1px 0 0; padding:0; accent-color:#00583f; }
.auth-agreement a { color:#00583f; text-decoration:underline; text-underline-offset:3px; }
@media (max-width: 700px) {
  .auth-screen { display: block; padding: 0; background: #fff; }
  .auth-layout { display: flex; flex-direction: column; width: 100%; min-height: 100dvh; border-radius: 0; box-shadow: none; }
  .auth-hero { flex: none; padding: max(22px, env(safe-area-inset-top)) 24px 24px; gap: 8px; }
  .auth-brand { max-width: 420px; width: 100%; align-self: center; }
  .auth-art { width: 100%; max-width: 300px; margin: 0 auto; }
  .auth-art img { height: 152px; }
  .auth-art p { margin: 0; font-size: 12px; line-height: 18px; }
  .auth-panel { align-self: stretch; width: 100%; flex: 1; padding: 32px 24px max(24px, env(safe-area-inset-bottom)); margin-top: -20px; border-radius: 32px 32px 0 0; background: #fff; }
  .auth-panel > * { max-width: 420px; margin-left: auto; margin-right: auto; }
  .auth-panel .auth-heading { max-width: 420px; }
  .auth-panel form { margin-top: 20px; }
  .auth-secondary .auth-art { display: none; }
  .auth-secondary .auth-hero { padding-bottom: 48px; }
}
@media (max-width: 350px) {
  .auth-hero { padding-left: 20px; padding-right: 20px; }
  .auth-panel { padding-left: 20px; padding-right: 20px; }
  .auth-heading h1 { font-size: 27px; }
}
