:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #17272b;
  background: #f7faf9;
  font-synthesis: none;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% -20%, rgba(8, 127, 140, 0.13), transparent 42rem),
    #f7faf9;
}

button, input { font: inherit; }

.landing { min-height: 100vh; padding: 24px; }
.hero { width: min(100%, 460px); margin: 0 auto; text-align: center; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #11636d;
  text-decoration: none;
  letter-spacing: 0.08em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: white;
  background: linear-gradient(145deg, #087f8c, #075d66);
  font-weight: 900;
  font-size: 21px;
  box-shadow: 0 7px 16px rgba(8, 127, 140, 0.24);
}
.brand span:last-child { display: grid; text-align: left; }
.brand strong { font-size: 16px; line-height: 1.1; }
.brand small { margin-top: 2px; color: #617579; font-size: 10px; letter-spacing: 0.04em; }
.product-mark { width: 50px; height: 50px; margin: 24px auto 9px; color: #087f8c; }
.product-mark svg { width: 100%; fill: currentColor; }
h1 {
  margin: 0;
  color: #122d32;
  font-size: clamp(25px, 5vw, 32px);
  line-height: 1.18;
  letter-spacing: -0.025em;
}
.subtitle { margin: 7px 0 21px; color: #52686c; }
.auth-card {
  padding: 20px;
  border: 1px solid #dce7e5;
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 15px 42px rgba(31, 66, 72, 0.10);
  text-align: left;
}
.button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:focus-visible, .text-button:focus-visible, input:focus-visible, .show-password:focus-visible {
  outline: 3px solid rgba(8, 127, 140, 0.25);
  outline-offset: 2px;
}
.button:disabled, .text-button:disabled { cursor: wait; opacity: 0.62; }
.google-button {
  border: 1px solid #ccd9d7;
  color: #23383c;
  background: #fff;
  box-shadow: 0 2px 5px rgba(30, 55, 60, 0.06);
}
.google-button svg { width: 20px; height: 20px; }
.primary-button {
  margin-top: 15px;
  border: 0;
  color: white;
  background: #087f8c;
  box-shadow: 0 6px 16px rgba(8, 127, 140, 0.20);
}
.primary-button:hover:not(:disabled) { background: #076e79; }
.helper {
  margin: 7px 5px 0;
  color: #687b7f;
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}
.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 17px 0 14px;
  color: #667a7d;
  font-size: 13px;
  white-space: nowrap;
}
.divider::before, .divider::after { content: ""; height: 1px; flex: 1; background: #dce5e3; }
label {
  display: block;
  margin: 12px 2px 6px;
  color: #334d52;
  font-size: 13px;
  font-weight: 700;
}
input {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  border: 1px solid #c7d5d3;
  border-radius: 9px;
  color: #183136;
  background: #fff;
}
.password-field { position: relative; }
.password-field input { padding-right: 60px; }
.show-password {
  position: absolute;
  inset: 1px 5px 1px auto;
  border: 0;
  color: #087f8c;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}
.text-button {
  display: block;
  margin: 4px auto 0;
  padding: 8px 10px;
  border: 0;
  color: #087f8c;
  background: transparent;
  cursor: pointer;
  font-weight: 700;
}
.guest-button { width: 100%; font-size: 15px; }
.message {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  color: #8a2932;
  background: #fff0f1;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}
.message.notice { color: #175f4b; background: #ecf8f3; }
.research-note { margin: 14px 0 24px; color: #607377; font-size: 12px; }
.app-loading {
  display: grid;
  min-height: 100vh;
  place-content: center;
  padding: 30px;
  text-align: center;
}
.app-loading h2 { margin: 18px 0 5px; color: #173b41; }
.app-loading p { margin: 0; color: #607377; }
.spinner {
  width: 42px;
  height: 42px;
  margin: 0 auto;
  border: 4px solid #d6e8e6;
  border-top-color: #087f8c;
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}
.hidden { display: none !important; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 520px) {
  .landing { padding: 18px 13px; }
  .auth-card { padding: 17px; border-radius: 14px; }
  .divider { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
}
