:root {
  color-scheme: light;
  --page-bg: #39402f;
  --page-glow: rgba(255, 255, 255, 0.05);
  --card-bg: #f5eddf;
  --card-border: rgba(46, 54, 40, 0.08);
  --text-main: #2f3828;
  --text-muted: #7a8271;
  --text-soft: #9ca392;
  --field-border: #d9d2c6;
  --field-focus: #8b9480;
  --button-bg: #a8a79a;
  --button-text: #fbfaf6;
  --button-hover: #969586;
  --notice-error-bg: rgba(181, 67, 45, 0.10);
  --notice-error-border: rgba(181, 67, 45, 0.20);
  --notice-error-text: #8f3f2f;
  --notice-info-bg: rgba(107, 132, 170, 0.10);
  --notice-info-border: rgba(107, 132, 170, 0.22);
  --notice-info-text: #496280;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top center, var(--page-glow) 0, transparent 28%),
    var(--page-bg);
  color: var(--text-main);
  font-family: "Manrope", sans-serif;
}

.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.shell {
  width: 100%;
  max-width: 480px;
}

.eyebrow {
  margin: 0 0 14px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: rgba(245, 237, 223, 0.72);
}

.card {
  border: 1px solid var(--card-border);
  border-radius: 18px;
  background: var(--card-bg);
  padding: 34px 32px 28px;
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.16);
}

.header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 26px;
}

.badge {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(47, 56, 40, 0.08);
  color: var(--text-main);
}

.title {
  margin: 0;
  font-size: 19px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--text-main);
}

.subtitle {
  margin: 6px 0 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--text-muted);
}

.notice {
  margin-bottom: 16px;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.45;
}

.notice.error {
  border: 1px solid var(--notice-error-border);
  background: var(--notice-error-bg);
  color: var(--notice-error-text);
}

.notice.info {
  border: 1px solid var(--notice-info-border);
  background: var(--notice-info-bg);
  color: var(--notice-info-text);
}

form {
  margin: 0;
}

.field {
  margin-bottom: 18px;
}

.label {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.input-wrap {
  position: relative;
}

.input {
  width: 100%;
  height: 48px;
  border: 1px solid var(--field-border);
  border-radius: 12px;
  background: #ffffff;
  padding: 0 48px 0 14px;
  font: inherit;
  font-size: 16px;
  color: var(--text-main);
  outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.input[type="email"] {
  padding-right: 14px;
}

.input:focus {
  border-color: var(--field-focus);
  box-shadow: 0 0 0 3px rgba(139, 148, 128, 0.15);
}

.toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  color: #a2a59a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.toggle:hover {
  color: #7d8277;
}

.button {
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: 12px;
  background: var(--button-bg);
  color: var(--button-text);
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: background 140ms ease;
}

.button:hover {
  background: var(--button-hover);
}

.button[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.footer {
  margin-top: 24px;
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-soft);
}

.footer a {
  color: #5d708b;
  font-weight: 700;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}
