/* Auth pages v2 — flat minimal */

.auth-body { overflow: auto; height: auto; min-height: 100vh; }

.auth-stage {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0;
  z-index: 3;
}

.auth-grid-bg { display: none; }

.auth-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  height: 48px;
  border-bottom: 1px solid var(--line);
}
.auth-brand { display: flex; align-items: baseline; gap: 12px; }
.auth-logo { display: none; }
.auth-wordmark {
  font-weight: 700;
  font-size: 14px;
  color: var(--green);
  letter-spacing: 0.08em;
}
.auth-tag { font-size: 11px; color: var(--faint); letter-spacing: 0.08em; }

.auth-nav { display: flex; gap: 4px; font-size: 12px; }
.auth-nav a {
  color: var(--dim);
  text-decoration: none;
  padding: 4px 12px;
}
.auth-nav a:hover { color: var(--fg); }
.auth-nav a.on { color: var(--green); background: rgba(0, 229, 58, 0.08); }

.auth-main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 48px 24px;
}

.auth-card {
  width: min(460px, 100%);
  border: 1px solid var(--line-strong);
}
.auth-card.wide { width: min(680px, 100%); }

.auth-card-header {
  padding: 10px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 0.06em;
}
.auth-card-body { padding: 22px 24px 24px; }

.auth-preamble {
  font-size: 12px;
  color: var(--dim);
  line-height: 1.7;
  padding-left: 12px;
  border-left: 2px solid var(--line);
  margin-bottom: 22px;
}

.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
}
.auth-form.two-col .full { grid-column: 1 / -1; }
.auth-form label { display: flex; flex-direction: column; gap: 4px; }

.auth-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--dim);
}
.auth-input-row {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--line);
}
.auth-prompt {
  padding: 8px 10px;
  font-size: 12px;
  color: var(--dim);
  border-right: 1px solid var(--line);
  white-space: nowrap;
  align-self: center;
}
.auth-input-row input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--fg);
  font-family: inherit;
  font-size: 13px;
  padding: 8px 10px;
  outline: none;
}
.auth-input-row input::placeholder { color: var(--faint); }
.auth-input-row:focus-within { border-color: var(--green); }

.auth-hint { font-size: 10px; color: var(--faint); }

.auth-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  margin-top: 2px;
}
.auth-check, .auth-check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--dim);
  cursor: pointer;
  font-size: 11px;
}
.auth-check input, .auth-check-row input { accent-color: var(--green); }
.auth-link {
  color: var(--amber);
  text-decoration: none;
}
.auth-link:hover { text-decoration: underline; }

.auth-btn {
  padding: 11px 18px;
  background: var(--green);
  color: var(--bg);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border: none;
  cursor: pointer;
  margin-top: 4px;
}
.auth-btn:hover { background: var(--green-bright); }
.auth-btn.full { grid-column: 1 / -1; }

.auth-divider {
  text-align: center;
  font-size: 11px;
  color: var(--faint);
  letter-spacing: 0.15em;
  margin: 18px 0 12px;
}

.auth-alts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.auth-alt-btn {
  padding: 9px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--dim);
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 0.06em;
  cursor: pointer;
}
.auth-alt-btn:hover { border-color: var(--green); color: var(--green); }

.auth-footer-note {
  text-align: center;
  margin-top: 18px;
  font-size: 12px;
  color: var(--dim);
  line-height: 1.8;
}

.auth-loader { margin-top: 16px; }
.auth-progress {
  height: 4px;
  border: 1px solid var(--line);
  overflow: hidden;
}
.auth-progress-fill {
  height: 100%;
  width: 0;
  background: var(--green);
  animation: fillup 1.6s ease-out forwards;
}
@keyframes fillup { to { width: 100%; } }
.auth-loader-text { font-size: 11px; color: var(--dim); margin-top: 6px; }

.auth-success-box {
  border: 1px solid var(--line-strong);
  border-left: 2px solid var(--green);
  padding: 16px 20px;
}
.auth-success-head { font-size: 13px; font-weight: 700; color: var(--green); margin-bottom: 10px; }
.auth-success-body { font-size: 12px; color: var(--dim); line-height: 1.8; margin-bottom: 12px; }

.auth-aside { display: none; }
.auth-mini-panel { display: none; }

.auth-footer {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--faint);
  letter-spacing: 0.06em;
  padding: 12px 24px;
  border-top: 1px solid var(--line);
}

@media (max-width: 720px) {
  .auth-form.two-col { grid-template-columns: 1fr; }
}
