:root {
  --bg: #f6f4ee;
  --panel: #fffdf8;
  --ink: #2f2a1f;
  --muted: #7a715f;
  --accent: #c1541b;
  --accent-2: #f1b463;
  --ok: #1f7a4a;
  --err: #b42318;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--ink);
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 10%, #fff7e5 0, #fff7e500 45%),
    radial-gradient(circle at 90% 80%, #ffe7c5 0, #ffe7c500 40%),
    var(--bg);
  display: grid;
  place-items: center;
  padding: 24px;
}

.card {
  width: min(440px, 100%);
  background: var(--panel);
  border: 1px solid #eadfca;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 14px 40px #3d2f1a1a;
}

h1 {
  margin: 0 0 6px;
  font-size: 1.9rem;
}

p {
  margin: 0 0 18px;
  color: var(--muted);
}

label {
  display: block;
  margin: 14px 0 6px;
  font-weight: 700;
}

input {
  width: 100%;
  border: 1px solid #d6c8ac;
  border-radius: 10px;
  padding: 12px;
  font-size: 1rem;
  background: #fff;
}

button {
  width: 100%;
  margin-top: 18px;
  border: 0;
  border-radius: 10px;
  padding: 12px;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  cursor: pointer;
}

.status {
  margin-top: 14px;
  font-weight: 700;
  min-height: 22px;
}

.hint {
  margin-top: 14px;
  font-size: 0.92rem;
  line-height: 1.45;
}

.next {
  margin-top: 12px;
}

.next a {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  color: #8a3f17;
  border-bottom: 2px solid #e5b47a;
  padding-bottom: 2px;
}

.hidden {
  display: none;
}

.status.ok { color: var(--ok); }
.status.err { color: var(--err); }
.status.strength { color: var(--muted); }
.status.strength.weak { color: #b42318; }
.status.strength.medium { color: #b77723; }
.status.strength.strong { color: #1f7a4a; }
.status.strength.very-strong { color: #0d5a2f; }

.password-strength-container {
  display: grid;
  gap: 4px;
}

.status .password-strength-container {
  margin-top: 6px;
}

.password-strength-bar {
  width: 100%;
  height: 4px;
  background: #e0e0e0;
  border-radius: 2px;
  overflow: hidden;
}

.password-strength-fill {
  height: 100%;
  width: 0%;
  background: #c1541b;
  transition: width 0.2s ease, background-color 0.2s ease;
}

.password-strength-fill.weak {
  background: #b42318;
}

.password-strength-fill.medium {
  background: #f1b463;
}

.password-strength-fill.strong {
  background: #1f7a4a;
}

.password-strength-fill.very-strong {
  background: #0d5a2f;
}


