:root {
  --bg: #f7faf2;
  --surface: #ffffff;
  --ink: #101713;
  --muted: #627066;
  --line: #e1ead8;
  --lemon: #d7f243;
  --green: #0d5a42;
  --green-deep: #07382c;
  --green-soft: #eaf6d8;
  --danger: #b42318;
  --shadow: 0 22px 70px rgba(16, 40, 30, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(215, 242, 67, 0.26), transparent 34rem),
    var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 400;
  line-height: 1.5;
}

/* Keep auth copy and controls at normal weight while preserving heading hierarchy. */
button,
input,
select,
textarea {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 400;
}

body p,
body label,
body small,
body input,
body select,
body textarea,
body button {
  font-weight: 400 !important;
}

body h1,
body h2,
body h3,
body h4,
body h5,
body h6 {
  font-weight: 600;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.auth-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
}

.auth-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 34px;
  padding: clamp(24px, 5vw, 54px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
}

.brand-logo {
  display: block;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  object-fit: contain;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 16px;
  background: var(--lemon);
  color: var(--green-deep);
  font-size: 0.86rem;
  font-weight: 900;
  box-shadow: inset 0 -12px 22px rgba(13, 90, 66, 0.12);
}

.brand strong,
.auth-card strong {
  display: block;
}

.brand span span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.auth-story {
  max-width: 560px;
}

.kicker {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-story h1,
.auth-card h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5.6vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.auth-story p,
.auth-card p,
.field-hint,
.helper-row {
  color: var(--muted);
}

.auth-story p {
  margin: 20px 0 0;
  font-size: 1.04rem;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 560px;
}

.trust-strip span {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  padding: 14px;
  color: var(--green-deep);
  font-size: 0.82rem;
  font-weight: 900;
}

.form-wrap {
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 44px);
}

.auth-card {
  width: min(100%, 560px);
  border: 1px solid var(--line);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.92);
  padding: clamp(22px, 4vw, 38px);
  box-shadow: var(--shadow);
  animation: pageIn 360ms ease both;
}

.auth-card h1 {
  font-size: clamp(2rem, 5vw, 3.3rem);
}

.auth-card > p {
  margin: 12px 0 24px;
}

.form-grid {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label,
.checkbox-row {
  color: #27342c;
  font-size: 0.9rem;
  font-weight: 900;
}

.input-wrap {
  position: relative;
}

.field input,
.field select {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fbfdf8;
  color: var(--ink);
  padding: 0 15px;
  outline: none;
  transition: border 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.field input:focus,
.field select:focus {
  border-color: var(--green);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(13, 90, 66, 0.12);
}

.provider-auth {
  display: grid;
  gap: 12px;
  margin: 22px 0 18px;
}

.google-button {
  display: inline-flex;
  min-height: 54px;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid #cfd9d1;
  border-radius: 999px;
  background: #ffffff;
  color: #18231d;
  padding: 0 20px;
  font-weight: 900;
  box-shadow: 0 8px 22px rgba(16, 40, 30, 0.08);
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.google-button:hover:not(:disabled) {
  border-color: var(--green);
  box-shadow: 0 12px 28px rgba(13, 90, 66, 0.13);
  transform: translateY(-1px);
}

.google-button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.google-mark {
  display: inline-grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border: 1px solid #d8e0da;
  border-radius: 50%;
  background: #ffffff;
  color: #1967d2;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.96rem;
  font-weight: 800;
}

.provider-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  height: 1px;
  background: var(--line);
  content: "";
}

.google-identity-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfdf8;
  padding: 12px;
}

.google-identity-preview img {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 50%;
  object-fit: cover;
}

.google-identity-preview div {
  min-width: 0;
}

.google-identity-preview strong,
.google-identity-preview span {
  display: block;
  overflow-wrap: anywhere;
}

.google-identity-preview span {
  color: var(--muted);
  font-size: 0.82rem;
}

.field.has-error input {
  border-color: var(--danger);
}

.field-error {
  min-height: 18px;
  color: var(--danger);
  font-size: 0.78rem;
  font-weight: 800;
}

.toggle-password {
  position: absolute;
  top: 50%;
  right: 10px;
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-deep);
  padding: 0 12px;
  font-size: 0.78rem;
  font-weight: 900;
  transform: translateY(-50%);
  cursor: pointer;
}

.password-meter {
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: #edf2e8;
}

.password-meter span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--danger);
  transition: width 160ms ease, background 160ms ease;
}

.field-hint {
  margin: 0;
  font-size: 0.78rem;
}

.checkbox-row,
.helper-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.checkbox-row {
  align-items: flex-start;
  justify-content: flex-start;
  line-height: 1.4;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--green-deep);
}

.link-button,
.text-link {
  border: 0;
  background: transparent;
  color: var(--green);
  padding: 0;
  font-weight: 900;
  cursor: pointer;
}

.button {
  display: inline-flex;
  min-height: 54px;
  width: 100%;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: var(--green-deep);
  color: #ffffff;
  padding: 0 22px;
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(7, 56, 44, 0.2);
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, opacity 160ms ease;
}

.button:hover {
  background: var(--green);
  transform: translateY(-2px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.form-footer {
  margin: 18px 0 0;
  color: var(--muted);
  text-align: center;
}

.notice {
  display: none;
  border: 1px solid #d8e8c5;
  border-radius: 18px;
  background: #f3fae7;
  color: var(--green-deep);
  padding: 13px 14px;
  font-size: 0.86rem;
  font-weight: 800;
}

.notice.is-visible {
  display: block;
}

:focus-visible {
  outline: 3px solid rgba(215, 242, 67, 0.9);
  outline-offset: 3px;
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-panel {
    gap: 24px;
    padding-bottom: 10px;
  }

  .auth-story h1 {
    font-size: clamp(2.55rem, 12vw, 4.2rem);
  }

  .trust-strip {
    grid-template-columns: 1fr;
  }

  .form-wrap {
    place-items: start center;
    padding-top: 0;
  }
}

@media (max-width: 560px) {
  .auth-panel {
    padding: 18px 16px 8px;
  }

  .form-wrap {
    padding: 8px 12px 22px;
  }

  .auth-card {
    border-radius: 26px;
  }

  .helper-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Auth uses the strongest version of the shared LemonCampus surface language. */
:root {
  --bg: #f5f7f3;
  --ink: #1b2420;
  --muted: #59675e;
  --line: #d9e4da;
  --premium-border: rgba(41, 84, 59, .16);
  --premium-shadow: 0 22px 58px rgba(20, 52, 35, .13), 0 3px 12px rgba(20, 52, 35, .05);
}
body { background: var(--bg); }
.auth-card {
  border-color: var(--premium-border);
  border-radius: 26px;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--premium-shadow);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.brand-mark { border-radius: 15px; box-shadow: 0 6px 16px rgba(13, 90, 66, .12); }
.field input, .field select {
  border-color: #bdcfc1;
  border-radius: 13px;
  background: #fff;
  box-shadow: inset 0 1px 3px rgba(20, 52, 35, .04);
}
.field input:focus, .field select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(13, 90, 66, .16); }
.button { background: var(--green-deep); box-shadow: 0 9px 22px rgba(7, 56, 44, .2); }
.button:hover { transform: translateY(-1px); }
.button:active:not(:disabled) { transform: translateY(1px); box-shadow: 0 3px 10px rgba(7, 56, 44, .15); }
.google-button { border-color: var(--premium-border); background: #fff; box-shadow: 0 4px 15px rgba(20, 52, 35, .07); }
.toggle-password { min-height: 40px; border-radius: 12px; }
@media (max-width: 560px) {
  .auth-card { border-radius: 22px; }
  .auth-panel { gap: 18px; }
}
@media (max-width: 900px) {
  .auth-story, .trust-strip { display: none; }
  .auth-panel { padding-bottom: 0; }
  .form-wrap { padding-top: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-card { animation: none; }
  .button, .google-button { transition-duration: 0ms; }
}
