:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #070d14;
  color: #f1f7fb;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 85% 0%, rgba(35, 192, 224, 0.14), transparent 31rem),
    radial-gradient(circle at 0% 100%, rgba(21, 130, 126, 0.12), transparent 28rem),
    #070d14;
}

button, input { font: inherit; }
button { cursor: pointer; }

.app-shell {
  width: min(100%, 480px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 22px 18px 28px;
  display: flex;
  flex-direction: column;
}

.topbar { display: flex; align-items: center; justify-content: space-between; }

.brand {
  color: #f5fbff;
  text-decoration: none;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.brand > span:last-child span { color: #68dff4; font-weight: 600; }

.brand-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #06232b;
  background: linear-gradient(145deg, #68e7f7, #21a8c5);
  border-radius: 9px;
  font-size: 0.95rem;
  box-shadow: 0 5px 18px rgba(60, 215, 238, 0.2);
}

.language-button {
  padding: 7px 10px;
  border: 1px solid rgba(159, 198, 211, 0.2);
  border-radius: 9px;
  color: #b4c9d1;
  background: rgba(17, 30, 42, 0.72);
  font-size: 0.73rem;
  font-weight: 700;
}

.welcome-card {
  margin: auto 0;
  padding: 28px 21px 23px;
  border: 1px solid rgba(148, 199, 212, 0.14);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(20, 33, 46, 0.96), rgba(10, 19, 29, 0.98));
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.27), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #7ecedf;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-dot { width: 7px; height: 7px; border-radius: 999px; background: #44dc97; box-shadow: 0 0 12px #44dc97; }
h1 { max-width: 320px; margin: 17px 0 9px; font-size: clamp(1.72rem, 7vw, 2.2rem); line-height: 1.1; letter-spacing: -0.045em; }
.intro { margin: 0; color: #9eb1ba; font-size: 0.98rem; }

.account-form { margin-top: 31px; }
.account-form label { display: block; color: #e3eef2; font-size: 0.93rem; font-weight: 700; }
.field-description { margin: 6px 0 11px; color: #788e99; font-size: 0.82rem; }

.input-wrap { position: relative; }
.input-wrap svg {
  position: absolute;
  top: 50%;
  left: 14px;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  fill: none;
  stroke: #70b5c3;
  stroke-width: 1.7;
  stroke-linecap: round;
}

input {
  width: 100%;
  min-height: 53px;
  padding: 0 14px 0 46px;
  border: 1px solid rgba(143, 187, 199, 0.2);
  border-radius: 13px;
  outline: none;
  color: #eaf7fb;
  background: #0c1721;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input::placeholder { color: #637884; }
input:focus { border-color: #4cd7ef; box-shadow: 0 0 0 3px rgba(76, 215, 239, 0.13); }

.form-message { min-height: 20px; margin: 8px 2px 0; color: #a9bac2; font-size: 0.8rem; }
.form-message.is-error { color: #ff9b9b; }

.continue-button {
  width: 100%;
  min-height: 53px;
  margin-top: 9px;
  border: 0;
  border-radius: 13px;
  color: #062116;
  background: linear-gradient(135deg, #43df95, #20ba73);
  box-shadow: 0 10px 20px rgba(37, 198, 116, 0.18);
  font-weight: 800;
  transition: transform 160ms ease, filter 160ms ease;
}

.continue-button:hover { filter: brightness(1.06); }
.continue-button:active { transform: translateY(1px); }
.privacy-note { margin: 22px 0 0; color: #647984; text-align: center; font-size: 0.76rem; }
.webapp-debug { margin: 10px 0 0; color: #566a75; text-align: center; font-size: 0.7rem; }
.webapp-debug.is-error { color: #ff9b9b; }
.footer-note { margin-top: auto; padding-top: 22px; color: #566a75; text-align: center; font-size: 0.74rem; }

@media (min-width: 540px) {
  .app-shell { padding: 32px 24px; }
  .welcome-card { padding: 34px 32px 28px; }
}
