
@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700&display=swap');
:root {
  --bg: #F6F7FB;
  --surface: #ffffff;
  --border: #E6E9EF;
  --text: #323338;
  --text-secondary: #676879;
  --text-muted: #9699A6;
  --accent: #0073EA;
  --accent-hover: #0060B9;
  --accent-soft: #E5F0FF;
  --status-green: #00C875;
  --status-red: #E2445C;
  --status-purple: #A25DDC;
  --radius-md: 8px;
  --radius-lg: 12px;
  --font: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body.auth-body {
  font: 15px/1.45 var(--font);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  background: var(--bg);
}
.auth-shell {
  min-height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
}
.auth-brand {
  position: relative;
  overflow: hidden;
  padding: 48px 56px;
  background:
    radial-gradient(900px 520px at 18% 20%, rgba(0, 115, 234, 0.18), transparent 60%),
    radial-gradient(700px 420px at 78% 72%, rgba(0, 200, 117, 0.14), transparent 55%),
    radial-gradient(560px 360px at 60% 10%, rgba(162, 93, 220, 0.10), transparent 50%),
    linear-gradient(160deg, #eef3fb 0%, #f7f8fc 45%, #eef6f2 100%);
  animation: authBrandIn 0.35s ease-out both;
}
.auth-brand__shapes { position: absolute; inset: 0; pointer-events: none; }
.auth-brand__shapes span {
  position: absolute;
  border-radius: 16px;
  opacity: 0.55;
}
.auth-brand__shapes .s1 {
  width: 180px; height: 120px; left: 12%; top: 28%;
  background: rgba(0, 115, 234, 0.12); transform: rotate(-8deg);
}
.auth-brand__shapes .s2 {
  width: 140px; height: 140px; right: 16%; top: 18%;
  border-radius: 28px; background: rgba(0, 200, 117, 0.12);
}
.auth-brand__shapes .s3 {
  width: 220px; height: 72px; left: 28%; bottom: 18%;
  background: rgba(162, 93, 220, 0.10); transform: rotate(4deg);
}
.auth-brand__inner {
  position: relative;
  z-index: 1;
  max-width: 36rem;
  margin-top: 22vh;
  padding-left: 0.25rem;
}
.auth-brand__lockup {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 1.5rem;
}
.auth-brand__lockup-mark {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  display: block;
}
.auth-brand__lockup-mark svg {
  width: 72px;
  height: 72px;
  display: block;
}
.auth-brand__lockup-name {
  margin: 0;
  font-size: clamp(2.75rem, 5.2vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text);
}
.auth-brand__tag {
  margin: 0;
  color: var(--text-secondary);
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  line-height: 1.4;
  max-width: 26rem;
  font-weight: 500;
}
.auth-form-col {
  display: flex; align-items: center; justify-content: center;
  background: var(--surface);
  padding: 40px 32px;
  border-left: 1px solid var(--border);
  animation: authFormIn 0.3s ease-out both;
}
.auth-form {
  width: 100%;
  max-width: 360px;
}
.auth-form__mobile-brand {
  display: none;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 2rem;
}
.auth-form__mobile-mark {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
}
.auth-form__mobile-mark svg { width: 44px; height: 44px; display: block; }
.auth-form__mobile-name {
  font-weight: 700;
  font-size: 1.65rem;
  letter-spacing: -0.03em;
  line-height: 1;
}
.auth-form h1 {
  font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em;
  margin: 0 0 0.4rem;
}
.auth-form__lead {
  margin: 0 0 1.5rem; color: var(--text-secondary); font-size: 0.95rem;
}
.auth-banner {
  margin: 0 0 1rem; padding: 0.75rem 0.9rem;
  border-radius: var(--radius-md);
  background: #fdecef; color: #9b1c2e; font-size: 0.9rem;
}
.auth-chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin: 0 0 1.25rem; padding: 0.35rem 0.7rem;
  border-radius: 999px; background: var(--accent-soft); color: var(--accent);
  font-size: 0.85rem; font-weight: 600;
}
.auth-field { margin-bottom: 1rem; }
.auth-field label {
  display: block; font-size: 0.85rem; font-weight: 600;
  color: var(--text-secondary); margin-bottom: 0.35rem;
}
.auth-field input {
  width: 100%; height: 48px; padding: 0 14px;
  border: 1px solid var(--border); border-radius: var(--radius-md);
  background: #fff; color: var(--text); font: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.auth-field input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.auth-field__error { margin: 0.35rem 0 0; color: var(--status-red); font-size: 0.8rem; }
.auth-password { position: relative; }
.auth-password input { padding-right: 4.25rem; }
.auth-password__toggle {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  border: 0; background: transparent; color: var(--accent);
  font: inherit; font-size: 0.8rem; font-weight: 600; cursor: pointer; padding: 0.35rem 0.5rem;
}
.auth-password__toggle:hover { color: var(--accent-hover); }
.auth-submit {
  width: 100%; height: 48px; margin-top: 0.5rem;
  border: 0; border-radius: var(--radius-md);
  background: var(--accent); color: #fff;
  font: inherit; font-weight: 600; cursor: pointer;
  transition: background 0.15s ease, opacity 0.1s ease;
}
.auth-submit:hover { background: var(--accent-hover); }
.auth-submit:active { opacity: 0.88; }
.auth-foot {
  margin-top: 1.25rem; color: var(--text-muted); font-size: 0.85rem; text-align: center;
}
.auth-foot a { color: var(--accent); text-decoration: none; font-weight: 600; }
.auth-foot a:hover { color: var(--accent-hover); }
.auth-copy-row {
  display: flex; gap: 0.5rem; align-items: stretch; margin: 1rem 0 0.5rem;
}
.auth-copy-row input {
  flex: 1; height: 48px; padding: 0 12px;
  border: 1px solid var(--border); border-radius: var(--radius-md);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.78rem;
  background: #fafbfd;
}
.auth-copy-btn {
  height: 48px; padding: 0 1rem; border: 0; border-radius: var(--radius-md);
  background: var(--accent); color: #fff; font: inherit; font-weight: 600; cursor: pointer;
  white-space: nowrap;
}
.auth-copy-btn:hover { background: var(--accent-hover); }
.auth-toast {
  margin-top: 0.5rem; color: var(--status-green); font-size: 0.85rem; font-weight: 600;
  min-height: 1.2em;
}
@keyframes authBrandIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes authFormIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .auth-form-col { border-left: 0; min-height: 100vh; padding: 32px 20px; }
  .auth-form__mobile-brand { display: flex; }
}
