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

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #e5eff0;
  --muted: #a4b7bb;
  --line: #344b51;
  --surface: #1a2b31;
  --canvas: #101c22;
  --teal: #42b8a8;
  --teal-dark: #319f92;
  --mint: #203c3b;
  --danger: #ff8d84;
  --shadow: 0 24px 70px rgba(0, 0, 0, .28);
}

:root {
  color-scheme: light;
  --ink: #172e36;
  --muted: #71828a;
  --line: #dce6e8;
  --surface: #ffffff;
  --canvas: #f3f7f8;
  --teal: #0b827e;
  --teal-dark: #096c69;
  --mint: #e5f5f1;
  --coral: #e99572;
  --danger: #bd443e;
  --shadow: 0 24px 70px rgba(25, 59, 66, .10);
}

* { box-sizing: border-box; }

html { min-width: 320px; min-height: 100%; background: var(--canvas); }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 18% 8%, rgba(184, 225, 215, .28), transparent 32rem),
    var(--canvas);
  font-family: "Vazirmatn", Tahoma, sans-serif;
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

html[data-theme="dark"] body {
  background:
    radial-gradient(ellipse at 18% 8%, rgba(56, 124, 115, .17), transparent 32rem),
    var(--canvas);
}

button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }

.page-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 39%);
  min-height: 100vh;
  max-width: 1600px;
  margin: 0 auto;
  padding: 28px;
  gap: 28px;
  direction: rtl;
}

.form-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 28px 18px 12px;
}

.form-card {
  width: min(100%, 510px);
  padding: 42px;
  border: 1px solid rgba(220, 230, 232, .82);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
  animation: arrive .55s ease-out both;
}

.signup-card { width: min(100%, 700px); padding: 34px 40px; }

.brand-lockup, .mobile-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.2px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .30);
  border-radius: 14px;
  background: rgba(255, 255, 255, .18);
  color: #fff;
  font-size: 21px;
  font-weight: 800;
}

.mobile-brand { display: none; }

.theme-toggle {
  position: fixed;
  z-index: 5;
  top: 20px;
  left: 22px;
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 5px 18px rgba(21, 52, 58, .09);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}

.theme-toggle:hover { transform: translateY(-1px); border-color: var(--teal); }
.theme-toggle:focus-visible { outline: 3px solid rgba(11, 130, 126, .35); outline-offset: 3px; }
.theme-icon { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.theme-icon-moon { display: none; }

html[data-theme="dark"] .theme-toggle { box-shadow: 0 5px 18px rgba(0, 0, 0, .22); }
html[data-theme="dark"] .theme-icon-sun { display: none; }
html[data-theme="dark"] .theme-icon-moon { display: block; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1px;
}

.eyebrow-dot, .status-indicator {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #55b89b;
  box-shadow: 0 0 0 4px rgba(85, 184, 155, .13);
}

h1 {
  margin: 0;
  font-size: clamp(25px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -.7px;
  line-height: 1.45;
}

.form-intro {
  margin: 5px 0 29px;
  color: var(--muted);
  font-size: 14px;
}

.form-stack { display: grid; gap: 20px; }
.login-card .form-stack { gap: 19px; }

.field { display: grid; min-width: 0; gap: 7px; }
.field-label { color: #304a52; font-size: 13px; font-weight: 700; }
.required-mark { color: var(--coral); }
.input-wrap { position: relative; display: flex; align-items: center; }

.input-wrap input, .tag-entry input, .tag-entry select, .text-input {
  width: 100%;
  min-width: 0;
  height: 52px;
  padding: 0 43px 0 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: 0;
  background: #fbfdfd;
  color: var(--ink);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.input-wrap input::placeholder, .tag-entry input::placeholder { color: #a1afb4; font-size: 13px; }
.input-wrap input:focus, .tag-entry input:focus, .tag-entry select:focus, .text-input:focus {
  border-color: #6bbcb1;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(11, 130, 126, .10);
}

.field-icon {
  position: absolute;
  right: 15px;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #82969b;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
  pointer-events: none;
}

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #71868c;
  cursor: pointer;
  transition: color .18s ease, background .18s ease;
}

.input-wrap > .icon-button { position: absolute; left: 5px; }
.icon-button:hover { background: #edf6f5; color: var(--teal); }
.eye-icon { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button:focus-visible, .icon-button:focus-visible, a:focus-visible { outline: 3px solid rgba(11, 130, 126, .35); outline-offset: 3px; }
.button-primary { background: var(--teal); color: #fff; box-shadow: 0 8px 18px rgba(11, 130, 126, .18); }
.button-primary:hover { background: var(--teal-dark); box-shadow: 0 10px 22px rgba(11, 130, 126, .24); }
.submit-button { width: 100%; min-height: 54px; margin-top: 2px; font-size: 15px; }
.submit-button svg, .back-link svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.security-note { display: flex; align-items: flex-start; gap: 9px; margin: 23px 0 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.security-note svg { width: 17px; height: 17px; flex: 0 0 auto; margin-top: 3px; fill: none; stroke: #5b9d90; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.page-footer { margin-top: 21px; color: #92a2a7; font-size: 11px; text-align: center; }
.form-error { margin: -5px 0 0; color: var(--danger); font-size: 12px; }

.visual-panel {
  position: relative;
  display: flex;
  min-height: 680px;
  flex-direction: column;
  overflow: hidden;
  padding: 38px;
  border-radius: 24px;
  background: linear-gradient(150deg, #126e70 0%, #14565f 51%, #173b49 100%);
  color: #fff;
  isolation: isolate;
}

.visual-pattern {
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .24;
  background-image: radial-gradient(rgba(255,255,255,.45) .7px, transparent .7px);
  background-size: 19px 19px;
  mask-image: linear-gradient(140deg, #000 0%, transparent 65%);
}

.visual-panel::before, .visual-panel::after {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 50%;
  content: "";
}

.visual-panel::before { width: 520px; height: 520px; right: -225px; bottom: -156px; }
.visual-panel::after { width: 370px; height: 370px; right: -150px; bottom: -80px; }
.visual-copy { position: relative; z-index: 1; margin: auto 0; padding: 44px 0 65px; }
.visual-kicker { display: inline-flex; padding: 6px 12px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; background: rgba(255,255,255,.08); color: #d3eeea; font-size: 12px; }
.visual-copy h2 { margin: 23px 0 15px; font-size: clamp(36px, 4.2vw, 55px); font-weight: 800; letter-spacing: -1.6px; line-height: 1.38; }
.visual-copy h2 span { color: #9dd8c8; }
.visual-copy p { max-width: 300px; margin: 0; color: rgba(255,255,255,.72); font-size: 14px; }
.visual-footer { display: flex; align-items: center; gap: 11px; color: rgba(255,255,255,.72); font-size: 12px; }
.decorative-tooth { position: absolute; left: 16px; bottom: 100px; width: 145px; height: 170px; opacity: .13; transform: rotate(-12deg); }
.decorative-tooth svg { width: 100%; height: 100%; fill: rgba(255,255,255,.22); stroke: #fff; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.signup-visual { min-height: 820px; }
.team-decoration { left: 24px; bottom: 120px; width: 155px; opacity: .18; }
.team-decoration svg { fill: none; stroke-width: 3; }

.back-link { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 18px; color: #73868b; font-size: 12px; transition: color .18s ease; }
.back-link:hover { color: var(--teal); }
.signup-form { gap: 23px; }
.form-section { min-width: 0; margin: 0; padding: 0; border: 0; }
.form-section + .form-section { padding-top: 20px; border-top: 1px solid #edf1f2; }
.form-section legend { display: flex; float: none; width: 100%; align-items: center; gap: 10px; margin-bottom: 16px; color: var(--ink); font-size: 14px; font-weight: 800; }
.section-number { display: grid; width: 26px; height: 26px; place-items: center; border-radius: 9px; background: var(--mint); color: var(--teal); font-size: 12px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 13px; }
.signup-form .field-grid > .field { align-content: start; }
.field-wide { grid-column: 1 / -1; }
.signup-card .input-wrap input, .signup-card .tag-entry input, .signup-card .tag-entry select { height: 47px; font-size: 13px; }
.signup-card .input-wrap input { padding-right: 42px; }
.input-suffix { position: absolute; left: 14px; color: #8a9a9e; font-size: 11px; pointer-events: none; }
.field-hint { color: #8a999d; font-size: 11px; line-height: 1.7; }
.tag-entry { display: flex; gap: 8px; }
.tag-entry input, .tag-entry select { padding: 0 13px; }
.tag-entry select { appearance: auto; }
.role-suggestions-wrap { position: relative; flex: 1 1 auto; min-width: 0; }
.role-suggestions-wrap > input { width: 100%; }
.role-suggestions { position: absolute; z-index: 20; inset: calc(100% + 5px) 0 auto; display: grid; max-height: 220px; overflow: auto; border: 1px solid #dce7e9; border-radius: 12px; background: #fff; box-shadow: 0 12px 30px rgba(24, 53, 60, .16); }
.role-suggestions[hidden] { display: none; }
.role-suggestion { border: 0; border-bottom: 1px solid #edf1f2; background: transparent; padding: 10px 12px; color: #183139; text-align: start; }
.role-suggestion:hover, .role-suggestion:focus-visible { background: #e6f5f1; outline: 0; }
.button-secondary { min-height: 44px; padding: 0 16px; border-color: #d4e8e4; background: #f2faf8; color: var(--teal); white-space: nowrap; }
.button-secondary:hover { border-color: #a8d5cb; background: #e6f5f1; }
.tag-list { display: flex; min-height: 0; flex-wrap: wrap; gap: 7px; }
.tag-list:not(:empty) { margin-top: 9px; }
.tag-chip { display: inline-flex; min-height: 31px; align-items: center; gap: 7px; padding: 2px 8px 2px 5px; border: 1px solid #d3e9e3; border-radius: 999px; background: #eff8f5; color: #28655d; font-size: 11px; }
.tag-remove { display: grid; width: 21px; height: 21px; place-items: center; border: 0; border-radius: 50%; background: transparent; color: #62857f; font-size: 16px; line-height: 1; cursor: pointer; }
.tag-remove:hover { background: #d9eee8; color: #9a4940; }
.strength-track { display: block; height: 4px; overflow: hidden; border-radius: 9px; background: #e9eff0; }
.strength-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: #d56c61; transition: width .2s ease, background .2s ease; }
.strength-track span[data-strength="medium"] { background: #dda348; }
.strength-track span[data-strength="strong"] { background: #42a483; }
.signup-security-note { margin-top: -9px; }

.date-dialog { width: min(calc(100% - 28px), 440px); max-height: min(94vh, 760px); padding: 0; overflow: auto; border: 0; border-radius: 24px; background: transparent; color: var(--ink); }
.date-dialog::backdrop { background: rgba(17, 38, 43, .50); backdrop-filter: blur(4px); }
.date-dialog-card { position: relative; display: grid; gap: 19px; padding: 30px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: 0 25px 80px rgba(17, 38, 43, .22); }
.date-dialog-card > .eyebrow { margin-inline-end: 44px; }
.date-dialog-heading h2 { margin: 0; font-size: 21px; font-weight: 800; }
.date-dialog-heading p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.dialog-close { position: absolute; top: 22px; inset-inline-end: 22px; display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--canvas); color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; transition: background .18s ease, color .18s ease, border-color .18s ease; }
.dialog-close:hover { border-color: var(--teal); background: var(--mint); color: var(--teal); }
.date-calendar { padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: color-mix(in srgb, var(--canvas) 55%, var(--surface)); }
.date-calendar-toolbar { display: grid; grid-template-columns: 40px minmax(0, 1fr) 40px; align-items: center; margin-bottom: 15px; }
.calendar-nav { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); cursor: pointer; transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease; }
.calendar-nav:hover { transform: translateY(-1px); border-color: var(--teal); background: var(--mint); color: var(--teal); }
.calendar-nav:focus-visible, .calendar-day:focus-visible, .dialog-close:focus-visible { outline: 3px solid color-mix(in srgb, var(--teal) 35%, transparent); outline-offset: 2px; }
.calendar-period-selectors { display: flex; min-width: 0; align-items: center; justify-content: center; gap: 7px; padding: 0 7px; }
.calendar-period-select { height: 38px; border: 1px solid var(--line); border-radius: 11px; background-color: var(--surface); color: var(--ink); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.calendar-period-select:focus-visible { border-color: var(--teal); outline: 3px solid color-mix(in srgb, var(--teal) 25%, transparent); outline-offset: 1px; }
.calendar-month-select { width: min(100%, 145px); padding: 0 8px; }
.calendar-year-select { width: 88px; padding: 0 7px; }
.calendar-weekdays, .calendar-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; text-align: center; }
.calendar-weekdays { margin-bottom: 7px; color: var(--muted); font-size: 11px; font-weight: 700; }
.calendar-weekdays span { display: grid; min-height: 30px; place-items: center; }
.calendar-day { position: relative; display: grid; min-width: 0; min-height: 40px; place-items: center; border: 1px solid transparent; border-radius: 12px; background: transparent; color: var(--ink); font: inherit; font-size: 12px; cursor: pointer; transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease; }
.calendar-day:hover:not(:disabled) { transform: translateY(-1px); border-color: color-mix(in srgb, var(--teal) 35%, var(--line)); background: var(--mint); color: var(--teal); }
.calendar-day:disabled { color: var(--muted); opacity: .38; cursor: default; }
.calendar-day.is-today:not(.is-selected)::after { position: absolute; inset-block-end: 3px; width: 4px; height: 4px; border-radius: 50%; background: var(--teal); content: ""; }
.calendar-day.is-selected { border-color: var(--teal); background: var(--teal); color: #fff; font-weight: 800; box-shadow: 0 5px 13px color-mix(in srgb, var(--teal) 25%, transparent); }
.date-picker-error { margin: 0; color: var(--danger); font-size: 12px; }
.date-picker-footer { display: grid; gap: 14px; padding-top: 16px; border-top: 1px solid var(--line); }
.date-selected-summary { display: grid; gap: 3px; }
.date-selected-summary span { color: var(--muted); font-size: 11px; }
.date-selected-summary strong { color: var(--ink); font-size: 13px; font-weight: 700; }
.date-picker-actions { display: flex; gap: 9px; }
.calendar-today, .calendar-confirm { min-height: 44px; }
.calendar-today { flex: 0 0 auto; }
.calendar-confirm { flex: 1 1 auto; }

@keyframes arrive { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

html[data-theme="dark"] .form-card {
  border-color: #2b4148;
  background: var(--surface);
  box-shadow: var(--shadow);
}

html[data-theme="dark"] .eyebrow { color: #70d0c2; }
html[data-theme="dark"] .field-label, html[data-theme="dark"] .form-section legend { color: #dce9ea; }
html[data-theme="dark"] .input-wrap input,
html[data-theme="dark"] .tag-entry input,
html[data-theme="dark"] .tag-entry select,
html[data-theme="dark"] .text-input {
  border-color: #3a5359;
  background: #142329;
  color: var(--ink);
}

html[data-theme="dark"] .input-wrap input::placeholder,
html[data-theme="dark"] .tag-entry input::placeholder { color: #81979c; }

html[data-theme="dark"] .input-wrap input:focus,
html[data-theme="dark"] .tag-entry input:focus,
html[data-theme="dark"] .tag-entry select:focus,
html[data-theme="dark"] .text-input:focus {
  border-color: #45b7a8;
  background: #17292e;
  box-shadow: 0 0 0 4px rgba(66, 184, 168, .13);
}

html[data-theme="dark"] .field-icon,
html[data-theme="dark"] .icon-button { color: #9bb0b4; stroke: currentColor; }
html[data-theme="dark"] .icon-button:hover { background: #23413f; color: #8fe0d2; }
html[data-theme="dark"] .button-primary { background: #168d83; color: #fff; }
html[data-theme="dark"] .button-primary:hover { background: #20a397; }
html[data-theme="dark"] .button-secondary { border-color: #345c57; background: #203936; color: #a4e1d6; }
html[data-theme="dark"] .button-secondary:hover { border-color: #43847b; background: #284541; }
html[data-theme="dark"] .security-note svg { stroke: #6cc4b4; }
html[data-theme="dark"] .page-footer,
html[data-theme="dark"] .field-hint { color: #91a5aa; }
html[data-theme="dark"] .back-link { color: #a1b4b8; }
html[data-theme="dark"] .back-link:hover { color: #80d3c7; }
html[data-theme="dark"] .form-section + .form-section { border-color: #2d4248; }
html[data-theme="dark"] .tag-chip { border-color: #345650; background: #203733; color: #a9e0d5; }
html[data-theme="dark"] .role-suggestions { border-color: #33494f; background: #192a30; }
html[data-theme="dark"] .role-suggestion { border-bottom-color: #33494f; color: #e4eff0; }
html[data-theme="dark"] .role-suggestion:hover, html[data-theme="dark"] .role-suggestion:focus-visible { background: #203b39; }
html[data-theme="dark"] .tag-remove { color: #9abbb4; }
html[data-theme="dark"] .tag-remove:hover { background: #34534d; color: #ffaaa2; }
html[data-theme="dark"] .input-suffix { color: #91a7ab; }
html[data-theme="dark"] .strength-track { background: #34474b; }
html[data-theme="dark"] .dialog-close { background: #273b41; color: #c3d2d4; }
html[data-theme="dark"] .dialog-close:hover { background: #334b51; }
html[data-theme="dark"] .date-dialog-card { border-color: #344b51; background: var(--surface); }
html[data-theme="dark"] .date-dialog::backdrop { background: rgba(2, 9, 12, .70); }
html[data-theme="dark"] .date-calendar { border-color: #344b51; background: color-mix(in srgb, var(--canvas) 72%, var(--surface)); }
html[data-theme="dark"] .calendar-period-select { border-color: #3a5359; background-color: #1a2b31; color: var(--ink); }
html[data-theme="dark"] .calendar-period-select:focus-visible { border-color: #45b7a8; }
html[data-theme="dark"] .calendar-nav { border-color: #3a5359; background: #1a2b31; }
html[data-theme="dark"] .calendar-nav:hover { border-color: #43847b; background: #203c3b; color: #a4e1d6; }
html[data-theme="dark"] .calendar-day:hover:not(:disabled) { border-color: #43847b; background: #203c3b; color: #a4e1d6; }
html[data-theme="dark"] .calendar-day.is-selected { border-color: #42b8a8; background: #168d83; color: #fff; }
html[data-theme="dark"] .dialog-close { border-color: #3a5359; background: #142329; }
html[data-theme="dark"] .dialog-close:hover { border-color: #43847b; background: #203c3b; color: #a4e1d6; }

@media (min-width: 1200px) {
  .page-shell { grid-template-columns: minmax(0, 1fr) minmax(380px, 40%); padding: 36px; gap: 36px; }
  .signup-shell { grid-template-columns: minmax(0, 1fr) minmax(360px, 34%); }
}

@media (max-width: 900px) {
  .page-shell { grid-template-columns: minmax(0, 1fr) minmax(270px, 35%); padding: 18px; gap: 18px; }
  .form-panel { padding-inline: 5px; }
  .form-card { padding: 32px 27px; }
  .signup-card { padding: 28px 24px; }
  .visual-panel { min-height: 600px; padding: 28px; }
  .signup-visual { min-height: 760px; }
  .visual-copy h2 { font-size: 38px; }
}

@media (max-width: 680px) {
  .page-shell { display: flex; min-height: 100svh; flex-direction: column; padding: 0 16px 18px; gap: 12px; }
  .form-panel { justify-content: flex-start; padding: 17px 0 0; }
  .mobile-brand { display: inline-flex; align-self: flex-start; margin: 0 0 15px; font-size: 13px; }
  .mobile-brand .brand-mark { width: 36px; height: 36px; border-color: #d0e9e3; border-radius: 12px; background: var(--teal); font-size: 18px; }
  .form-card, .signup-card { width: 100%; padding: 27px 22px; border-radius: 20px; }
  .login-card { margin-top: clamp(10px, 4vh, 36px); }
  .form-intro { margin-bottom: 23px; }
  .visual-panel { display: none; }
  .page-footer { margin-top: 16px; }
  .theme-toggle { top: 16px; left: 15px; }
  .signup-card { padding: 22px 18px; }
  .signup-card .form-intro { margin-bottom: 22px; }
  .field-grid { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .field-wide { grid-column: auto; }
  .signup-form { gap: 20px; }
  .form-section + .form-section { padding-top: 17px; }
}

@media (max-width: 390px) {
  .page-shell { padding-inline: 11px; }
  .form-card, .signup-card { padding-inline: 17px; }
  .input-wrap input { padding-inline: 40px; font-size: 12px; }
  .signup-card .input-wrap input { font-size: 12px; }
  .date-dialog-card { gap: 16px; padding: 25px 18px 18px; }
  .date-dialog-card > .eyebrow { font-size: 10px; }
  .dialog-close { top: 16px; inset-inline-end: 16px; }
  .date-calendar { padding: 12px 9px; }
  .calendar-period-selectors { gap: 5px; padding: 0 4px; }
  .calendar-month-select { width: min(100%, 128px); }
  .calendar-year-select { width: 76px; }
  .calendar-weekdays, .calendar-days { gap: 3px; }
  .calendar-day { min-height: 38px; border-radius: 10px; }
  .tag-entry { gap: 6px; }
  .button-secondary { padding-inline: 11px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
[data-install-app][hidden] { display: none !important; }
