/* Auth — sparse teal chrome, same lockup as the in-app shell */

:root {
  --auth-ink: #18181b;
  --auth-ink-2: #3f3f46;
  --auth-text: #18181b;
  --auth-muted: #71717a;
  --auth-faint: #a1a1aa;
  --auth-border: #e4e4e7;
  --auth-border-strong: #d4d4d8;
  --auth-surface: #ffffff;
  --auth-surface-2: #f4f4f5;
  --auth-accent: #0F766E;
  --auth-accent-ink: #0d6b64;
  --auth-accent-soft: #e8f5f3;
  --auth-danger-bg: #fef2f2;
  --auth-danger-text: #991b1b;
  --auth-radius: 12px;
  --auth-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
}

body.auth-page {
  min-height: 100%;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  color: var(--auth-text);
  background: #fff;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--auth-accent);
  text-decoration: none;
  font-weight: 600;
}

a:hover {
  color: var(--auth-accent-ink);
  text-decoration: underline;
}

.auth-main {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px 64px;
}

.auth-inner {
  width: 100%;
  max-width: 380px;
}

.auth-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 28px;
  color: var(--auth-ink);
  text-decoration: none;
  line-height: 1;
}

.auth-brand:hover {
  color: var(--auth-ink);
  text-decoration: none;
}

.auth-brand-mark {
  width: 32px;
  height: 32px;
  flex: none;
  display: block;
  border-radius: 50%;
}

.auth-brand-word {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.045em;
  color: var(--auth-ink);
}

.auth-title {
  margin: 0 0 28px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--auth-ink);
  text-align: center;
}

.auth-sub {
  margin: -16px 0 28px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--auth-muted);
  text-align: center;
}

.auth-sub:empty {
  display: none;
}

/* Legacy wrap — keep for existing page structure, strip old card look */
.login_wrap {
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.login_header {
  margin: 0;
}

.lh2 {
  margin: 0 0 28px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--auth-muted);
  text-align: center;
  max-width: none;
  font-style: normal;
}

.lh2 i,
.lh2 u {
  font-style: normal;
  text-decoration: none;
  color: var(--auth-text);
  font-weight: 600;
}

.flash {
  width: 100%;
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--auth-danger-bg);
  color: var(--auth-danger-text);
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid var(--auth-border);
  border-radius: var(--auth-radius);
  background: #fff;
  color: var(--auth-text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.14s ease, border-color 0.14s ease;
}

.google-btn:hover {
  background: #fafafa;
  border-color: var(--auth-border-strong);
  text-decoration: none;
}

.oauth-divider {
  display: flex;
  align-items: center;
  margin: 20px 0;
  color: var(--auth-faint);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.oauth-divider::before,
.oauth-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid var(--auth-border);
}

.oauth-divider span {
  padding: 0 12px;
}

.login_wrap form label,
.auth-inner form label {
  display: block;
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--auth-text);
}

.password-flex {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.password-flex label {
  margin-bottom: 0;
}

.password-flex a {
  font-size: 13px;
  font-weight: 600;
  color: var(--auth-muted);
  white-space: nowrap;
}

.password-flex a:hover {
  color: var(--auth-accent);
}

.login_wrap input,
.auth-inner input[type="email"],
.auth-inner input[type="password"],
.auth-inner input[type="text"] {
  display: block;
  width: 100%;
  min-height: 46px;
  margin: 0 0 14px;
  padding: 11px 14px;
  border: 1px solid var(--auth-border);
  border-radius: var(--auth-radius);
  background: #fff;
  color: var(--auth-text);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.4;
  text-indent: 0;
  transition: border-color 0.14s ease, box-shadow 0.14s ease;
}

.login_wrap input:focus,
.auth-inner input:focus {
  outline: none;
  border-color: var(--auth-accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.16);
}

.login_pw,
.register_pw {
  margin-bottom: 14px !important;
}

.login_wrap input.verify-code {
  text-align: center;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.login_wrap .cf-turnstile {
  margin: 4px 0 12px;
}

#submit,
.login_wrap input[type="submit"],
.auth-inner button[type="submit"] {
  appearance: none;
  display: block;
  width: 100%;
  min-height: 48px;
  margin: 8px 0 0;
  padding: 12px 16px;
  border: none;
  border-radius: var(--auth-radius);
  background: var(--auth-accent);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-indent: 0;
  cursor: pointer;
  transition: background 0.14s ease, transform 0.14s ease;
}

#submit:hover,
.login_wrap input[type="submit"]:hover {
  background: var(--auth-accent-ink);
}

#submit:focus-visible,
.login_wrap input[type="submit"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.22);
}

#submit:active {
  transform: scale(0.99);
}

.resend-inline {
  margin-top: 18px;
  text-align: center;
}

.resend-inline input[type="submit"],
#resend-code {
  appearance: none;
  display: inline;
  width: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  color: var(--auth-accent);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  cursor: pointer;
}

.resend-inline input[type="submit"]:hover,
#resend-code:hover {
  background: none;
  text-decoration: underline;
}

.sub-links {
  margin-top: 22px;
  text-align: center;
  font-size: 14px;
  color: var(--auth-muted);
}

.sub-links a {
  color: var(--auth-accent);
  font-weight: 600;
}

/* Hide legacy split-panel chrome */
.logocont,
.login-right,
.logo {
  display: none !important;
}

.form_help,
.terms,
.secondarybtn,
.divider,
.forgot_password {
  /* kept for any residual markup */
}

.form_help {
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--auth-muted);
  text-align: center;
}

@media screen and (max-width: 767px) {
  .auth-main {
    align-items: flex-start;
    padding-top: 40px;
  }

  .auth-title {
    font-size: 24px;
  }

  .login_wrap input,
  .auth-inner input[type="email"],
  .auth-inner input[type="password"],
  .auth-inner input[type="text"] {
    font-size: 16px; /* iOS — prevent zoom */
  }
}
