:root {
  --bg: #f3f5f3;
  --card: #ffffff;
  --line: #e2e7e4;
  --text: #0f1a17;
  --muted: #66756f;
  --accent: #0f6b58;
  --accent-ink: #0b4f42;
  --danger: #a4232b;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(1100px 600px at 15% -10%, #e4efe9 0%, transparent 60%),
    radial-gradient(900px 500px at 110% 110%, #e9efec 0%, transparent 55%),
    var(--bg);
  color: var(--text);
  font: 15px/1.5 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.wrap { width: 100%; max-width: 420px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 28px 22px;
  box-shadow: 0 18px 48px rgba(16, 40, 33, 0.08), 0 2px 6px rgba(16, 40, 33, 0.04);
}

.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }

.mark {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: transparent;
  box-shadow: 0 6px 16px rgba(14, 42, 38, 0.22);
}

.mark img { display: block; width: 40px; height: 40px; border-radius: 12px; }
.name { font-weight: 650; letter-spacing: -0.01em; }
.sub { font-size: 12px; color: var(--muted); }

h1 { margin: 0 0 6px; font-size: 24px; letter-spacing: -0.02em; }
.lead { margin: 0 0 22px; color: var(--muted); font-size: 13.5px; }

label { display: block; font-size: 12px; font-weight: 600; color: #3d4d47; margin: 0 0 6px; }

input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfcfb;
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}

input:focus { border-color: #9fc4b7; background: #fff; box-shadow: 0 0 0 3px rgba(15, 107, 88, 0.12); }

.pw { position: relative; margin-bottom: 4px; }
.pw input { padding-right: 84px; }

.ghost {
  position: absolute; right: 6px; top: 6px; height: 32px;
  border: 0; background: transparent; color: var(--accent-ink);
  font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer;
  border-radius: 7px; padding: 0 8px;
}
.ghost:hover { background: #eef5f2; }

#user { margin-bottom: 16px; }

.fehler { min-height: 20px; margin: 10px 0 14px; color: var(--danger); font-size: 13px; }

.primary {
  width: 100%; height: 46px; border: 0; border-radius: 10px;
  background: var(--accent); color: #fff;
  font: inherit; font-weight: 650; letter-spacing: 0.01em;
  cursor: pointer;
  transition: background .15s, transform .05s;
}
.primary:hover { background: var(--accent-ink); }
.primary:active { transform: translateY(1px); }
.primary:disabled { opacity: .6; cursor: progress; }

.fuss { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
