:root {
  --pink: #d6336c;
  --pink-dark: #b8255a;
  --pink-soft: rgba(214, 51, 108, 0.18);
  --text: #0f172a;
  --muted: #334155;
  --placeholder: #94a3b8;
  --field-bg: #f8fafc;
  --border: #e2e8f0;
  --bg: #f1f1f1;
  --card: #ffffff;
  --error: #b91c1c;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(24px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
           max(24px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}

.card {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border-radius: 24px;
  padding: 40px 24px 40px;
  box-shadow: 0 3px 4px rgba(0, 0, 0, 0.35);
}

@media (min-width: 480px) {
  .card { padding: 44px 36px; }
}

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

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  box-shadow: 0 0 0 2px var(--pink);
}

.brand-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--muted);
}

h1 {
  margin: 0 0 32px;
  font-size: 32px;
  line-height: 1.2;
  font-weight: 800;
}

.field { margin-bottom: 20px; }

label {
  display: block;
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 10px;
}

input {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  font: inherit;
  font-size: 16px;                /* verhindert Auto-Zoom auf iOS */
  color: var(--text);
  background: var(--field-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
  appearance: none;
}

input::placeholder { color: var(--placeholder); }

input:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px var(--pink-soft);
  background: #fff;
}

.btn {
  width: 100%;
  height: 48px;
  margin-top: 4px;
  border: 0;
  border-radius: 16px;
  background: var(--pink);
  color: #fff;
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 18px var(--pink-soft);
  transition: background .15s, transform .05s;
  touch-action: manipulation;
}

.btn:hover { background: var(--pink-dark); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .7; cursor: default; }

.btn-secondary {
  background: transparent;
  color: var(--pink);
  border: 1px solid var(--pink);
  box-shadow: none;
}
.btn-secondary:hover { background: var(--pink-soft); }

.error {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fef2f2;
  color: var(--error);
  font-size: 14px;
}

.hint {
  margin: 32px 0 0;
  text-align: center;
  font-size: 15px;
  line-height: 1.4;
  color: var(--muted);
}

.hint a {
  color: var(--pink);
  font-weight: 700;
  text-decoration: none;
}

.lead {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
  margin: -16px 0 32px;
}

.btn-link {
  display: grid;
  place-items: center;
  text-decoration: none;
}
