:root {
  color-scheme: light;
  --ink: #122018;
  --muted: #647067;
  --forest: #123f2b;
  --forest-deep: #09291b;
  --mint: #83e7b5;
  --mint-soft: #e5f8ed;
  --paper: #fffdf8;
  --line: #dce6df;
  --danger: #a93636;
  --success: #176b43;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 15%, rgba(131, 231, 181, 0.28), transparent 28rem),
    linear-gradient(135deg, var(--forest-deep), var(--forest));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
}

button {
  touch-action: manipulation;
}

.auth-shell {
  width: min(1080px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
  gap: clamp(44px, 8vw, 100px);
  align-items: center;
  padding: 48px 0;
}

.intro {
  color: #fff;
  max-width: 540px;
}

.mine-logo {
  display: block;
  width: 116px;
  height: auto;
  margin-bottom: 42px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--mint);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: none;
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 650;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.headline-line {
  display: block;
  white-space: nowrap;
}

.intro-copy {
  max-width: 46ch;
  margin: 28px 0 32px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.06rem;
  line-height: 1.65;
}

.trust-note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  max-width: 430px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.trust-note strong,
.trust-note span {
  display: block;
}

.trust-note strong {
  margin-bottom: 4px;
  font-size: 0.92rem;
}

.trust-note div > span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.82rem;
  line-height: 1.5;
}

.trust-icon {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--forest-deep);
  background: var(--mint);
  font-weight: 800;
}

.auth-card {
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 28px;
  background: rgba(255, 253, 248, 0.97);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.24);
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  margin-bottom: 28px;
  border-radius: 14px;
  background: #edf2ee;
}

.tab {
  min-height: 42px;
  border: 0;
  border-radius: 11px;
  color: var(--muted);
  background: transparent;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
}

.tab.is-active {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 2px 10px rgba(18, 32, 24, 0.08);
}

.form-heading {
  margin-bottom: 24px;
}

.form-heading h2,
.signed-in-panel h2 {
  margin: 0 0 8px;
  font-size: 1.5rem;
  letter-spacing: -0.025em;
}

.form-heading p,
.signed-in-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.field {
  display: block;
  margin-bottom: 17px;
}

.field > span {
  display: block;
  margin-bottom: 7px;
  font-size: 0.8rem;
  font-weight: 700;
}

.field input {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.field input:focus {
  border-color: var(--success);
  box-shadow: 0 0 0 3px rgba(23, 107, 67, 0.12);
}

.field small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.73rem;
}

.primary-button,
.secondary-button {
  width: 100%;
  min-height: 50px;
  border-radius: 13px;
  font-weight: 750;
  cursor: pointer;
}

.text-button {
  display: block;
  margin: 15px auto 0;
  padding: 4px;
  border: 0;
  color: var(--success);
  background: transparent;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.text-button:hover {
  text-decoration: underline;
}

.text-button:focus-visible {
  border-radius: 6px;
  outline: 3px solid rgba(23, 107, 67, 0.18);
  outline-offset: 2px;
}

.primary-button {
  border: 0;
  color: #fff;
  background: var(--forest);
  box-shadow: 0 10px 24px rgba(18, 63, 43, 0.2);
}

.primary-button:hover {
  background: var(--forest-deep);
}

.primary-button:disabled,
.secondary-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.secondary-button {
  border: 1px solid var(--line);
  color: var(--forest);
  background: #fff;
}

.message {
  margin-bottom: 20px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.83rem;
  line-height: 1.5;
}

.message.is-error {
  color: var(--danger);
  background: #fff0f0;
  border: 1px solid #f1cccc;
}

.message.is-success {
  color: var(--success);
  background: var(--mint-soft);
  border: 1px solid #bce8ce;
}

.legal-note,
.support-note {
  margin: 16px 4px 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
  text-align: center;
}

.signed-in-panel {
  padding: 14px 0 4px;
  text-align: center;
}

.signed-in-panel p {
  margin-bottom: 24px;
}

.success-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 50%;
  color: var(--success);
  background: var(--mint-soft);
  font-size: 1.4rem;
  font-weight: 800;
}

@media (max-width: 820px) {
  .auth-shell {
    width: min(520px, calc(100% - 28px));
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 32px 0;
  }

  .intro {
    text-align: center;
  }

  .mine-logo {
    margin: 0 auto 28px;
  }

  h1,
  .intro-copy,
  .trust-note {
    margin-left: auto;
    margin-right: auto;
  }

  .trust-note {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .auth-shell {
    width: 100%;
    padding: 26px 16px 16px;
  }

  h1 {
    font-size: clamp(2rem, 11vw, 2.55rem);
  }

  .intro-copy {
    margin-top: 20px;
    font-size: 0.95rem;
  }

  .trust-note {
    display: none;
  }

  .auth-card {
    padding: 20px;
    border-radius: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
