:root {
  --bg: #0f1115;
  --surface: #161a21;
  --surface-hover: #1c2129;
  --border: #2a3140;
  --text: #e4e8ed;
  --text-muted: #8b95a5;
  --accent: #5b8def;
  --accent-hover: #6d9bf7;
  --radius: 8px;
  --font: system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

/* Langsam driftende, stark geblurrte Farbkleckse als Stimmungshintergrund */
.bg-blobs {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--bg);
}

.blob {
  position: absolute;
  width: 85vmax;
  height: 85vmax;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.3;
  pointer-events: none;
}

.blob-1 { left: -20%; top: -15%; background: #243555; animation: drift-1 10s ease-in-out infinite alternate; }
.blob-2 { left: 40%; top: -25%; background: #3d2548; animation: drift-2 15s ease-in-out infinite alternate; animation-delay: -10s; }
.blob-3 { left: -10%; top: 50%; background: #254035; animation: drift-3 30s ease-in-out infinite alternate; animation-delay: -20s; }

/* Verschmelzender Blur über den Farbpunkten */
.blur-layer {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(10px);
  pointer-events: none;
}

@keyframes drift-1 {
  0% { transform: translate(0, 0); }
  100% { transform: translate(12vw, -20vh); }
}

@keyframes drift-2 {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-15vw, 12vh); }
}

@keyframes drift-3 {
  0% { transform: translate(0, 0); }
  100% { transform: translate(8vw, 25vh); }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  position: relative;
}

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

h1 {
  margin: 0 0 0.25rem;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.lead {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.input-wrap {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

#password {
  flex: 1;
  padding: 0.65rem 0.9rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.15s ease;
}

#password::placeholder {
  color: var(--text-muted);
}

#password:focus {
  outline: none;
  border-color: var(--accent);
}

#toggle {
  padding: 0.65rem 0.85rem;
  background: var(--surface-hover);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease;
}

#toggle:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

.strength {
  margin-top: 0.5rem;
}

.strength-bar-bg {
  height: 6px;
  background: var(--bg);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.6rem;
}

.strength-bar {
  height: 100%;
  width: 0%;
  border-radius: 3px;
  transition: width 0.25s ease, background-color 0.2s ease;
}

.strength-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.score-label {
  font-weight: 500;
  color: var(--text);
}

.score-0 { color: #e74c3c; }
.score-1 { color: #e67e22; }
.score-2 { color: #f1c40f; }
.score-3 { color: #27ae60; }
.score-4 { color: #2ecc71; }
.score-practical-weak { color: #e74c3c; }

.crack-time {
  font-variant-numeric: tabular-nums;
}

.practical-warning {
  margin: 0.75rem 0 0;
  padding: 0.5rem 0.65rem;
  background: rgba(231, 76, 60, 0.12);
  border-left: 3px solid #c0392b;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.85rem;
  color: #e8a399;
}

.practical-warning.hidden {
  display: none;
}

.crack-time-weak {
  color: #e74c3c;
}

.password-info {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.85rem;
}

.password-info.hidden {
  display: none;
}

.password-info-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.25rem 0;
}

.password-info-row:not(:last-child) {
  border-bottom: 1px solid var(--border);
}

.gpu-crack-rows .password-info-row:last-child {
  border-bottom: 1px solid var(--border);
}

.password-info dt {
  margin: 0;
  color: var(--text-muted);
  font-weight: 400;
}

.password-info dd {
  margin: 0;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.password-info-hint {
  margin: 0.6rem 0 0;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.password-info-hint code {
  padding: 0.1em 0.35em;
  background: var(--surface-hover);
  border-radius: 3px;
  font-size: 0.9em;
}

.warning {
  margin: 0.75rem 0 0;
  padding: 0.5rem 0.65rem;
  background: rgba(231, 76, 60, 0.12);
  border-left: 3px solid #c0392b;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.85rem;
  color: #e8a399;
}

.suggestions {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.suggestions.hidden,
.warning.hidden {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .strength-bar,
  #password,
  #toggle {
    transition: none;
  }

  .blob {
    animation: none;
  }
}
