/* CropMapper — Wagen Global v2 inspired shell */

:root {
  --wg-header-h: 56px;
  --wg-sidebar-w: 380px;
  --wg-rail-w: 56px;
  --wg-bg: #f1f5f9;
  --wg-surface: #ffffff;
  --wg-border: #e2e8f0;
  --wg-text: #0f172a;
  --wg-muted: #64748b;
  --wg-primary: #147a4b;
  --wg-primary-dark: #0f4d32;
  --wg-success: #059669;
  --wg-radius: 12px;
  --wg-radius-sm: 8px;
  --wg-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  --wg-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --wg-shadow-md: 0 8px 28px rgba(15, 23, 42, 0.12);
  --wg-field-h: 2.5rem;
  --wg-field-radius: 8px;
  --wg-field-border: #cbd5e1;
  --wg-field-bg: #ffffff;
  --wg-field-focus-ring: 0 0 0 3px rgba(20, 122, 75, 0.16);
  --wg-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%2364748b' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --wg-rail-bg: #f8fafc;
  --wg-safe-top: env(safe-area-inset-top, 0px);
  --wg-safe-right: env(safe-area-inset-right, 0px);
  --wg-safe-bottom: env(safe-area-inset-bottom, 0px);
  --wg-safe-left: env(safe-area-inset-left, 0px);
  --font-ui: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
::before,
::after {
  box-sizing: border-box;
}

body.cropmapper-v2 {
  margin: 0 !important;
  overflow: hidden;
  background: var(--wg-bg);
  color: var(--wg-text);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none !important;
}

.flash_stack {
  position: fixed;
  top: calc(var(--wg-header-h) + 12px);
  right: 24px;
  z-index: 20000;
}

.flash_item {
  background: var(--wg-primary-dark);
  color: #fff;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  box-shadow: var(--wg-shadow-md);
}

.wagen-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: calc(var(--wg-header-h) + var(--wg-safe-top));
  padding-top: var(--wg-safe-top);
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding-left: max(0.75rem, var(--wg-safe-left));
  padding-right: max(1rem, var(--wg-safe-right));
  background: var(--wg-surface);
  border-bottom: 1px solid var(--wg-border);
  box-shadow: var(--wg-shadow-sm);
}

.wagen-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  color: inherit;
  padding: 0.25rem 0.5rem;
  border-radius: var(--wg-radius-sm);
}

.wagen-brand img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.wagen-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  gap: 0.1rem;
}

.wagen-brand__name {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--wg-primary-dark);
}

.wagen-brand__title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--wg-muted);
}

.wagen-header-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
}

.wg-btn-icon {
  width: 38px;
  height: 38px;
  border: 1px solid var(--wg-border);
  border-radius: 50%;
  background: #fff;
  color: var(--wg-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  font-size: 0.95rem;
}

.wg-btn-icon:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: var(--wg-primary);
}

.wg-btn-text {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 38px;
  padding: 0 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--wg-border);
  background: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--wg-text);
  cursor: pointer;
}

.wg-btn-text:hover {
  background: #f8fafc;
}

.wg-show-mobile {
  display: none !important;
}

.wagen-shell {
  position: fixed;
  top: calc(var(--wg-header-h) + var(--wg-safe-top));
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  min-height: 0;
}

.wagen-sidebar-backdrop {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 499;
  border: 0;
  background: rgba(15, 23, 42, 0.38);
  cursor: pointer;
}

.wagen-sidebar {
  width: var(--wg-sidebar-w);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: var(--wg-surface);
  border-right: 1px solid var(--wg-border);
  z-index: 500;
  min-height: 0;
}

.main-menu-rail {
  display: flex;
  flex: 1;
  min-height: 0;
  width: 100%;
}

.main-menu-rail__icons {
  width: var(--wg-rail-w);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem 0;
  background: var(--wg-rail-bg);
  border-right: 1px solid var(--wg-border);
}

.main-menu-rail__btn {
  position: relative;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--wg-border);
  border-radius: 11px;
  background: #fff;
  color: var(--wg-muted);
  font-size: 1.05rem;
  cursor: pointer;
}

.main-menu-rail__btn:hover {
  background: #f4f7fb;
  border-color: #c5d0de;
  color: var(--wg-text);
}

.main-menu-rail__btn.active {
  background: var(--wg-primary);
  border-color: var(--wg-primary);
  color: #fff;
  box-shadow: 0 3px 10px rgba(15, 76, 129, 0.28);
}

.main-menu-rail__tip {
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  padding: 0.35rem 0.55rem;
  border-radius: 6px;
  background: var(--wg-text);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  z-index: 20;
}

.main-menu-rail__btn:hover .main-menu-rail__tip {
  opacity: 1;
  visibility: visible;
}

.main-menu-flyout {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.main-menu-flyout__scroll {
  flex: 1;
  min-height: 0;
  padding: 1rem 0.85rem 1.25rem;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f1f5f9;
}

.wg-section-panel {
  display: none;
}

.wg-section-panel.open {
  display: block;
}

.wg-section-panel__title {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--wg-text);
}

.wg-menu-block {
  padding: 0.85rem;
  margin-bottom: 0.85rem;
  border: 1px dashed var(--wg-border);
  border-radius: var(--wg-radius-sm);
  background: #fafbfc;
}

.wg-menu-block:last-child {
  margin-bottom: 0;
}

.wg-menu-block__label,
.wg-menu-block__heading {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--wg-text);
}

.wg-panel__hint {
  margin: 0.65rem 0 0.75rem;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--wg-muted);
}

.form-check {
  min-height: 2.1rem;
  margin-bottom: 0.45rem;
}

.form-check-label--control {
  cursor: pointer;
  user-select: none;
  width: 100%;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--wg-text);
}

body.cropmapper-v2 .form-check-input {
  accent-color: var(--wg-primary);
}

body.cropmapper-v2 .form-select,
body.cropmapper-v2 .form-control {
  display: block;
  width: 100%;
  min-height: var(--wg-field-h);
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--wg-field-border);
  border-radius: var(--wg-field-radius);
  background: var(--wg-field-bg);
  color: var(--wg-text);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
}

body.cropmapper-v2 .form-select {
  appearance: none;
  padding-right: 2.1rem;
  background-image: var(--wg-chevron);
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  background-size: 0.75rem;
}

body.cropmapper-v2 .form-select:focus,
body.cropmapper-v2 .form-control:focus {
  outline: none;
  border-color: var(--wg-primary);
  box-shadow: var(--wg-field-focus-ring);
}

.wg-field--overlay-sub {
  margin-top: 0.45rem;
  margin-bottom: 0;
  padding-left: 1.65rem;
}

.wg-field--overlay-sub .wg-menu-block__label {
  font-size: 0.8125rem;
  font-weight: 600;
}

.wg-field:last-child {
  margin-bottom: 0;
}

body.cropmapper-v2 .btn_general {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: auto;
  min-height: 2.5rem;
  padding: 0.55rem 1rem;
  margin-top: 0.75rem;
  border: 1px solid transparent;
  border-radius: var(--wg-radius-sm);
  background: var(--wg-primary);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: var(--wg-shadow-sm);
  cursor: pointer;
}

body.cropmapper-v2 .btn_general:hover {
  background: var(--wg-primary-dark);
  color: #fff;
}

body.cropmapper-v2 .btn_general--block {
  width: 100%;
}

body.cropmapper-v2 .btn_general--sm {
  min-height: 2.25rem;
  padding: 0.4rem 0.7rem;
  margin-top: 0;
  font-size: 0.8125rem;
}

body.cropmapper-v2 .btn_general--outline {
  background: #fff;
  color: var(--wg-primary);
  border-color: var(--wg-border);
  box-shadow: none;
}

body.cropmapper-v2 .btn_general--outline:hover {
  background: #f0fdf4;
  border-color: var(--wg-primary);
  color: var(--wg-primary-dark);
}

.wagen-map-wrap {
  flex: 1;
  position: relative;
  min-width: 0;
}

body.cropmapper-v2 #map {
  position: absolute !important;
  inset: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: #e8ecf1;
}

body.cropmapper-v2 #map .ol-zoom,
body.cropmapper-v2 #map .ol-attribution {
  display: none !important;
}

.map-hud {
  position: absolute;
  z-index: 400;
  pointer-events: none;
}

.map-hud > * {
  pointer-events: auto;
}

.map-hud--tl {
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.5rem;
}

.map-hud--tr {
  top: 12px;
  right: 12px;
}

.map-hud--br {
  bottom: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
}

.map-control-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.map-circle-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--wg-primary-dark);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(15, 77, 50, 0.22), var(--wg-shadow-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.map-circle-btn:hover {
  background: var(--wg-primary);
}

.map-circle-btn.active {
  background: #fff;
  color: var(--wg-primary-dark);
}

.map-btn-tip {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 0.35rem 0.55rem;
  border-radius: 6px;
  background: var(--wg-text);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  z-index: 30;
}

.map-hud--tl .map-btn-tip {
  left: calc(100% + 10px);
}

.map-hud--tr .map-btn-tip {
  right: calc(100% + 10px);
}

.map-circle-btn:hover .map-btn-tip {
  opacity: 1;
  visibility: visible;
}

.map-hud__flyouts {
  position: relative;
  width: 0;
  height: 0;
  overflow: visible;
}

.map-hud__flyouts .map-flyout {
  position: absolute;
  top: 0;
  left: 0;
  width: min(320px, calc(100vw - 96px));
  z-index: 2;
}

.map-hud__flyouts .map-flyout--search {
  width: min(360px, calc(100vw - 96px));
}

.map-flyout {
  background: #fff;
  border: 1px solid var(--wg-field-border);
  border-radius: var(--wg-field-radius);
  box-shadow: var(--wg-shadow-md);
  overflow: hidden;
}

.map-flyout[hidden] {
  display: none !important;
}

.map-flyout__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--wg-border);
  background: #f8fafc;
}

.map-flyout__head-title {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--wg-muted);
}

.map-flyout__close {
  width: 28px;
  height: 28px;
  border: 1px solid var(--wg-field-border);
  border-radius: 6px;
  background: #fff;
  color: var(--wg-muted);
  cursor: pointer;
}

.map-flyout__body {
  padding: 0.75rem;
}

.map-flyout__list {
  list-style: none;
  margin: 0;
  padding: 0.25rem 0;
}

.wg-input-wrap {
  position: relative;
}

.wg-input-wrap > i {
  position: absolute;
  left: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--wg-muted);
  font-size: 0.875rem;
  pointer-events: none;
}

.wg-input-wrap .form-control {
  padding-left: 2.15rem;
}

body.cropmapper-v2 .wg-input-wrap .form-control {
  padding-left: 2.15rem;
}

.map-search-row {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.map-search-field {
  flex: 1;
  min-width: 0;
}

.map-search-go {
  flex-shrink: 0;
  white-space: nowrap;
}

.map-search-results {
  margin-top: 0.65rem;
  padding: 0;
  max-height: min(240px, 38vh);
  overflow-y: auto;
}

.map-search-results li {
  padding: 0.5rem 0.7rem;
  font-size: 0.8125rem;
  line-height: 1.35;
  cursor: pointer;
  border-left: 3px solid transparent;
}

.map-search-results li:hover {
  background: #ecfdf3;
  border-left-color: var(--wg-primary);
}

.map-search-results li.empty {
  cursor: default;
  color: var(--wg-muted);
}

.map-search-results li.empty:hover {
  background: transparent;
  border-color: transparent;
}

.basemap-option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.5rem 0.7rem;
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--wg-text);
  border-left: 3px solid transparent;
}

.basemap-option:hover {
  background: #f4f7fb;
}

.basemap-option:has(input:checked) {
  border-left-color: var(--wg-primary);
  background: #ecfdf3;
}

.map-legend-card {
  width: min(220px, calc(100vw - 1.5rem));
  background: #fff;
  border: 1px solid var(--wg-field-border);
  border-radius: var(--wg-field-radius);
  box-shadow: var(--wg-shadow-md);
  overflow: hidden;
}

.map-legend-card[hidden] {
  display: none !important;
}

.map-legend-card__title {
  margin: 0;
  padding: 0.45rem 0.65rem;
  background: #f8fafc;
  border-bottom: 1px solid var(--wg-border);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--wg-muted);
}

.map-legend-card img {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
}

.map-coord-pill {
  display: inline-flex;
  align-items: flex-end;
  gap: 0.35rem;
  padding: 0.45rem 0.55rem;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
  font-variant-numeric: tabular-nums;
}

.map-coord-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 5.5rem;
}

.map-coord-label {
  font-size: 13px;
  font-weight: 500;
  color: #94a3b8;
  text-transform: lowercase;
}

.map-coord-value,
.map-coord-sep {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
}

.wg-report-card {
  border: 1px solid var(--wg-border);
  border-radius: var(--wg-radius-sm);
  background: #fff;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.wg-report-card__body {
  padding: 0.65rem 0.75rem;
}

.wg-report-card__title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
}

.wg-report-card__date {
  margin: 0.2rem 0 0;
  font-size: 0.6875rem;
  color: var(--wg-muted);
}

.wg-empty-state {
  margin: 0;
  padding: 1rem 0.75rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--wg-muted);
  background: #f8fafc;
  border: 1px dashed var(--wg-border);
  border-radius: var(--wg-radius-sm);
}

.wagen-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
}

.wagen-modal[hidden] {
  display: none !important;
}

.wagen-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.32);
}

.wagen-modal__panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(440px, calc(100vw - 2rem));
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--wg-border);
  border-radius: 10px;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.14);
  overflow: hidden;
}

.wagen-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  background: #f8fafc;
  border-bottom: 1px solid var(--wg-border);
}

.wagen-modal__title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
}

.wagen-modal__close {
  width: 28px;
  height: 28px;
  border: 1px solid var(--wg-border);
  border-radius: 6px;
  background: #fff;
  color: var(--wg-muted);
  cursor: pointer;
}

.wagen-modal__body {
  padding: 1rem;
  color: var(--wg-text);
}

.wagen-modal__body p {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.wagen-modal-label {
  display: block;
  margin: 0 0 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--wg-muted);
  text-transform: uppercase;
}

.wagen-modal-input {
  width: 100%;
  min-height: var(--wg-field-h);
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--wg-field-border);
  border-radius: var(--wg-field-radius);
  font-family: inherit;
}

.wagen-modal-input[type="file"] {
  padding: 0.4rem;
}

.wagen-modal__body .wg-panel__hint {
  margin: 0.4rem 0 1rem;
}

.wagen-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0.8rem 1rem;
  border-top: 1px solid var(--wg-border);
  background: #fafbfc;
}

.wagen-modal-btn {
  min-width: 5rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.wagen-modal-btn--secondary {
  background: #fff;
  border-color: var(--wg-border);
  color: var(--wg-text);
}

.wagen-modal-btn--primary {
  background: var(--wg-primary-dark);
  color: #fff;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

@media (max-width: 768px) {
  .wg-show-mobile {
    display: inline-flex !important;
  }

  .wagen-brand__title {
    display: none;
  }

  .wagen-sidebar {
    position: absolute;
    inset: 0 auto 0 0;
    width: min(100vw, 360px);
    transform: translateX(-105%);
    transition: transform 0.25s ease;
    box-shadow: var(--wg-shadow);
  }

  .wagen-sidebar.open {
    transform: translateX(0);
  }

  .wagen-shell.sidebar-open .wagen-sidebar-backdrop {
    display: block;
  }

  .main-menu-rail__tip,
  .map-btn-tip {
    display: none;
  }

  .wagen-header-actions .wg-btn-text span {
    display: none;
  }
}

/* Auth pages */
body.cropmapper-auth {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(160deg, #dcfce7 0%, #f1f5f9 45%, #e2e8f0 100%);
  color: var(--wg-text);
  font-family: var(--font-ui);
}

.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.auth-header {
  padding: 1rem 1.25rem;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
}

.auth-brand img {
  height: 44px;
  width: auto;
}

.auth-brand__name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--wg-primary-dark);
}

.auth-brand__title {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--wg-muted);
}

.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem 2rem;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--wg-surface);
  border: 1px solid var(--wg-border);
  border-radius: var(--wg-radius);
  box-shadow: var(--wg-shadow);
  padding: 2rem 1.75rem;
}

.auth-card__header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.auth-card__header h1 {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.auth-card__header p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--wg-muted);
}

.auth-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.75rem 0.85rem;
  border-radius: var(--wg-radius-sm);
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}

.auth-alert--error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.auth-input-wrap {
  position: relative;
}

.auth-input-wrap > i {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--wg-muted);
  pointer-events: none;
}

.auth-form input[type="text"],
.auth-form input[type="password"],
.auth-form input[type="email"] {
  width: 100%;
  padding: 0.65rem 0.85rem 0.65rem 2.5rem;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid var(--wg-border);
  border-radius: var(--wg-radius-sm);
}

.auth-form input:focus {
  outline: none;
  border-color: var(--wg-primary);
  box-shadow: 0 0 0 3px rgba(20, 122, 75, 0.18);
}

.auth-field-error,
.helptext {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  color: var(--wg-muted);
}

.auth-field-error {
  color: #b91c1c;
}

.auth-submit {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.7rem 1rem;
  border: none;
  border-radius: var(--wg-radius-sm);
  background: var(--wg-primary-dark);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.auth-submit:hover {
  background: var(--wg-primary);
}

.auth-card__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--wg-border);
}

.auth-card__links a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--wg-primary-dark);
}

.auth-footer {
  padding: 1rem 1.25rem 1.25rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--wg-muted);
}
