:root {
  color-scheme: dark;
  --background: #0d0d0d;
  --surface: #151515;
  --border: #2b2b2b;
  --text: #f8f7fa;
  --muted: #969299;
  --coral: #ff6b6b;
  --purple: #a855f7;
  --gradient: linear-gradient(120deg, var(--coral), var(--purple));
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  background:
    radial-gradient(circle at 50% 37%, rgba(168, 85, 247, 0.1), transparent 21rem),
    var(--background);
  color: var(--text);
  font-family: "DM Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

.status-shell {
  display: flex;
  flex-direction: column;
  width: min(100%, 390px);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: 30px 22px;
}

header {
  text-align: center;
}

.logo {
  position: relative;
  display: inline-block;
  background: var(--gradient);
  background-clip: text;
  color: transparent;
  font-family: "Manrope", sans-serif;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1;
  text-decoration: none;
}

.logo-monkey {
  position: absolute;
  top: -10px;
  left: 67%;
  color: initial;
  font-family: system-ui, sans-serif;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  pointer-events: none;
  transform: translateX(-50%) rotate(-7deg);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.34));
}

.returning-hero {
  margin-top: 116px;
  text-align: center;
}

.returning-hero h1 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 30px;
  letter-spacing: -1.2px;
  line-height: 1.15;
}

.returning-hero p {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 13px;
}

form {
  margin-top: 42px;
}

.field-group label {
  display: block;
  margin: 0 0 10px;
  color: #d7d3d9;
  font-size: 13px;
  font-weight: 600;
}

.field-group input {
  width: 100%;
  height: 58px;
  padding: 0 17px;
  border: 1px solid var(--border);
  border-radius: 17px;
  outline: none;
  background: var(--surface);
  color: var(--text);
  caret-color: var(--coral);
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.field-group input::placeholder {
  color: #69666b;
}

.field-group input:focus {
  border-color: rgba(255, 107, 107, 0.72);
  background: #181818;
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.08);
}

.status-button {
  position: relative;
  width: 100%;
  height: 60px;
  margin-top: 14px;
  border: 0;
  border-radius: 18px;
  background: var(--gradient);
  box-shadow: 0 16px 40px rgba(168, 85, 247, 0.22);
  color: white;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.status-button:hover {
  box-shadow: 0 20px 46px rgba(168, 85, 247, 0.3);
}

.status-button:active {
  transform: scale(0.98);
}

.form-message {
  min-height: 18px;
  margin: 10px 2px 0;
  color: var(--coral);
  font-size: 11px;
  text-align: center;
}

@media (min-width: 620px) {
  .status-shell {
    min-height: calc(100svh - 68px);
    margin-block: 34px;
    border: 1px solid #1e1e1e;
    border-radius: 34px;
    background: rgba(13, 13, 13, 0.68);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.3);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
  }
}
