:root {
  --bg: #edf2ef;
  --panel: #f8fbf9;
  --border: #c8d4ce;
  --text: #1d2c30;
  --muted: #5c7378;
  --accent: #148f77;
  --accent-strong: #0f7a65;
  --warn: #c25a2b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Source Sans 3', sans-serif;
  color: var(--text);
  background: linear-gradient(145deg, #f2f6f4 0%, #e7edeb 100%);
}

.app {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.card {
  width: min(560px, 100%);
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: 0 14px 30px rgba(35, 57, 53, 0.08);
  overflow: hidden;
}

.card-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 700;
}

h1 {
  font-family: 'Space Grotesk', sans-serif;
  margin: 8px 0 6px;
  font-size: 30px;
}

.subtitle {
  margin: 0;
  color: var(--muted);
}

#password-help {
  margin-top: 8px;
  font-size: 14px;
}

.card-body {
  padding: 20px 24px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 18px;
  color: var(--text);
  background: #fff;
}

.password-field-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.password-field-wrap .password-input {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  padding-right: 52px;
}

.password-toggle {
  width: 44px;
  height: 44px;
  min-width: 44px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  color: #335559;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.password-toggle svg {
  width: 18px;
  height: 18px;
}

.field {
  margin-bottom: 16px;
}

.row {
  display: flex;
  gap: 12px;
}

.row .field {
  flex: 1;
}

.actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 18px;
  text-decoration: none;
  cursor: pointer;
}

button.primary,
.btn.primary {
  background: var(--accent);
  color: #fff;
}

button.primary:hover,
.btn.primary:hover {
  background: var(--accent-strong);
}

button.ghost,
.btn.ghost {
  background: #fff;
  border-color: var(--border);
  color: var(--text);
}

.links {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.links a {
  color: var(--accent-strong);
  font-weight: 600;
  text-decoration: none;
}

.checkbox-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.checkbox-line input[type='checkbox'] {
  width: 18px;
  height: 18px;
  margin: 0;
}

.notice {
  margin-top: 14px;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 15px;
}

.notice.info {
  background: #e9f6f2;
  color: #17594c;
}

.notice.warn {
  background: #fceee8;
  color: #8c3c16;
}

.hidden {
  display: none;
}
