/* Hopstec Guardian — auth shell (split-panel redesign) */

.auth-page {
  font-family: 'Inter', system-ui, sans-serif;
  background: #070d18;
  color: var(--text-primary);
  min-height: 100vh;
}

.auth-shell {
  min-height: 100vh;
  display: flex;
}

.auth-brand-panel {
  width: 44%;
  min-width: 420px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 36px 44px;
  box-sizing: border-box;
  background:
    radial-gradient(700px 420px at 30% 20%, rgba(45, 212, 191, 0.09), transparent 60%),
    radial-gradient(600px 400px at 80% 90%, rgba(99, 102, 241, 0.1), transparent 60%),
    #0a1424;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
}

.auth-brand-top {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.auth-logo-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.2), rgba(99, 102, 241, 0.14));
  border: 1px solid rgba(45, 212, 191, 0.3);
  overflow: hidden;
  padding: 0;
}

.auth-brand-title {
  font-weight: 800;
  color: #fff;
  font-size: 15px;
  font-family: 'Plus Jakarta Sans', Inter, sans-serif;
}

.auth-brand-by {
  color: var(--c-muted);
  font-weight: 600;
  font-size: 12px;
}

.auth-brand-headline {
  font-size: 34px;
  font-weight: 800;
  font-family: 'Plus Jakarta Sans', Inter, sans-serif;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 12px;
  text-wrap: balance;
}

.auth-brand-copy {
  color: #8296b3;
  font-size: 14.5px;
  line-height: 1.65;
  margin: 0 0 26px;
  max-width: 380px;
  text-wrap: pretty;
}

.auth-agent-stack {
  display: flex;
  margin-bottom: 22px;
}

.auth-agent-stack-photo {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  padding: 2px;
}
.auth-agent-stack-photo--amber {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.55), rgba(245, 158, 11, 0.08));
  box-shadow: 0 0 34px rgba(245, 158, 11, 0.25);
}
.auth-agent-stack-photo--teal {
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.55), rgba(45, 212, 191, 0.08));
  box-shadow: 0 0 34px rgba(45, 212, 191, 0.25);
  margin-left: -14px;
}
.auth-agent-stack-photo--indigo {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.6), rgba(99, 102, 241, 0.08));
  box-shadow: 0 0 34px rgba(99, 102, 241, 0.28);
  margin-left: -14px;
}
.auth-agent-stack-photo--violet {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.55), rgba(139, 92, 246, 0.08));
  box-shadow: 0 0 34px rgba(139, 92, 246, 0.25);
  margin-left: -14px;
}

.auth-activity-feed {
  display: flex;
  flex-direction: column;
  gap: 9px;
  max-width: 380px;
}

.auth-activity-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 10px 14px;
}

.auth-activity-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
}

.auth-activity-text {
  font-size: 12.5px;
  color: #c7d2e4;
  flex: 1;
}

.auth-activity-time {
  font-size: 10.5px;
  color: var(--c-muted);
  font-family: 'JetBrains Mono', monospace;
}

.auth-brand-footer {
  font-size: 11.5px;
  color: var(--c-muted);
}

.auth-footer-claude { color: #818cf8; font-weight: 600; }
.auth-footer-temporal { color: #2dd4bf; font-weight: 600; }

.auth-form-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  box-sizing: border-box;
  background: #070d18;
}

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

.auth-mode-toggle {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 26px;
}

.auth-mode-tab {
  flex: 1;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 0;
  border-radius: 9px;
  color: #94a3b8;
  text-decoration: none;
  transition: background var(--motion-fast), color var(--motion-fast);
}
.auth-mode-tab.is-active {
  background: rgba(45, 212, 191, 0.12);
  color: var(--accent);
}

.auth-heading {
  font-size: 24px;
  font-weight: 800;
  font-family: 'Plus Jakarta Sans', Inter, sans-serif;
  color: #fff;
  margin: 0 0 4px;
}

.auth-subheading {
  font-size: 13.5px;
  color: #8296b3;
  margin: 0 0 24px;
}

.auth-form-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-field { display: flex; flex-direction: column; }

.auth-label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 7px;
}

.auth-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 7px;
}

.auth-input {
  width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 11px;
  padding: 12px 16px;
  color: #e2e8f0;
  font-size: 14px;
  outline: none;
  min-height: 44px;
}
.auth-input:focus {
  border-color: rgba(45, 212, 191, 0.45);
  box-shadow: var(--focus-ring);
}
.auth-input--error { border-color: rgba(239, 68, 68, 0.5); }

.auth-pw-wrap { position: relative; }
.auth-pw-wrap .auth-input { padding-right: 44px; }

.auth-pw-eye {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #64748b;
  background: transparent;
  border: none;
  cursor: pointer;
}
.auth-pw-eye:hover {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.06);
}

.auth-btn {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 14.5px;
  font-weight: 700;
  padding: 13px 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #5eead4, #14b8a6);
  color: #07111e;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(45, 212, 191, 0.3);
  margin-top: 4px;
}
.auth-btn:hover { opacity: 0.92; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #94a3b8;
  font-size: 11.5px;
  margin: 4px 0 12px;
}
.auth-divider span {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
}

.auth-oauth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  padding: 12px 0;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  cursor: not-allowed;
  opacity: 0.7;
}

.auth-banner {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #fca5a5;
  font-size: 13px;
  margin-bottom: 16px;
}
.auth-banner--success {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.25);
  color: #86efac;
}

.auth-error {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 12px;
  color: #f87171;
  margin-top: 6px;
}

.auth-link {
  color: #5eead4;
  text-decoration: none;
}
.auth-link:hover { color: #99f6e4; }

.auth-hint {
  font-size: 12px;
  color: #94a3b8;
  cursor: default;
}

.auth-legal {
  font-size: 11.5px;
  color: var(--c-muted);
  text-align: center;
  margin: 0;
}

.auth-public-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 14px;
  font-size: 11px;
}
.auth-public-links a {
  color: #64748b;
  text-decoration: none;
}
.auth-public-links a:hover { color: #cbd5e1; }

.auth-bottom-text {
  font-size: 13px;
  color: #8296b3;
  text-align: center;
  margin-top: 18px;
}

@media (max-width: 960px) {
  .auth-brand-panel { display: none; }
  .auth-form-panel { padding: 24px 20px; }
}
