:root {
  --bg: #f4efe4;
  --surface: rgba(255, 255, 255, 0.78);
  --text: #14261f;
  --muted: #53665e;
  --line: rgba(20, 38, 31, 0.12);
  --primary: #0a8f6a;
  --primary-strong: #087558;
  --danger: #b33f3f;
  --shadow: 0 24px 60px rgba(20, 38, 31, 0.14);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
  font-family: Georgia, "Times New Roman", serif;
  background:
    radial-gradient(circle at top right, rgba(10, 143, 106, 0.18), transparent 28%),
    linear-gradient(180deg, #f5f1e8 0%, #ebe3d3 100%);
  color: var(--text);
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.shell {
  width: min(100%, 460px);
}

.panel {
  backdrop-filter: blur(12px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.brand-row {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 20px;
}

.brand-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, #0a8f6a, #15b184);
  color: white;
  font-size: 1.3rem;
  font-weight: 700;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
}

.title {
  margin: 0;
  font-size: clamp(1.9rem, 6vw, 2.4rem);
  line-height: 1;
}

.lead {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.5;
}

.stack {
  display: grid;
  gap: 12px;
}

.field,
.button {
  width: 100%;
  min-height: 52px;
  border-radius: 16px;
  border: 1px solid var(--line);
  font: inherit;
}

.field {
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 140ms ease, background 140ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.primary {
  background: var(--primary);
  color: #fff;
  border-color: transparent;
}

.primary:hover {
  background: var(--primary-strong);
}

.secondary {
  background: rgba(10, 143, 106, 0.08);
  color: var(--text);
}

.ghost {
  background: transparent;
  color: var(--muted);
}

.row-links {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.row-links a {
  color: var(--primary-strong);
  text-decoration: none;
}

.notice,
.status,
.app-card {
  border-radius: 16px;
  padding: 14px 16px;
}

.notice.success {
  margin-bottom: 16px;
  background: rgba(10, 143, 106, 0.1);
  color: var(--primary-strong);
}

.status {
  min-height: 24px;
  margin: 18px 0 0;
  color: var(--muted);
}

.status.error {
  color: var(--danger);
}

.app-card {
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  line-height: 1.5;
}

@media (max-width: 480px) {
  body {
    padding: 12px;
  }

  .panel {
    padding: 18px;
    border-radius: 24px;
  }
}

.password-field {
  position: relative;
  display: block;
}

.password-field .field {
  padding-right: 56px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  z-index: 1;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--primary-strong);
  cursor: pointer;
}

.password-toggle:hover {
  background: rgba(10, 143, 106, 0.1);
}

.password-toggle:focus-visible {
  outline: 2px solid rgba(10, 143, 106, 0.35);
  outline-offset: 2px;
}

.password-icon {
  width: 20px;
  height: 20px;
}

.password-icon-slash {
  opacity: 0;
}

.password-toggle.is-visible .password-icon-slash {
  opacity: 1;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

