/* AJ Nodes — Login / Sign up */

body.ajn-auth {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 70% 50% at 20% 0%, rgba(79, 188, 230, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(79, 188, 230, 0.12), transparent 50%),
    linear-gradient(160deg, #eef3f6 0%, #f7f8fa 55%, #eef1f4 100%);
  color: #000;
  font-family: var(--ajn-portal-font, "Plus Jakarta Sans", system-ui, sans-serif);
  -webkit-font-smoothing: antialiased;
}

.ajn-auth-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  box-sizing: border-box;
  gap: 20px;
}

.ajn-auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #000;
  font-weight: 700;
  font-size: 16px;
}

.ajn-auth-brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.ajn-auth-card {
  width: 100%;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  padding: 28px 24px 32px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(12px);
  animation: ajn-portal-rise 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ajn-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 6px;
  margin-bottom: 24px;
  border-radius: 14px;
  background: linear-gradient(137.66deg, #f5f5f5 21.13%, #f2f2f2 80.53%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -3px 0 #e4e4e4;
}

.ajn-auth-tab {
  appearance: none;
  border: 0;
  background: transparent;
  border-radius: 10px;
  padding: 12px 10px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.ajn-auth-tab.is-active {
  background: #fff;
  color: #000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.ajn-auth-title {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.ajn-auth-desc {
  margin: 0 0 22px;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.55);
}

.ajn-auth-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 600;
}

.ajn-auth-field input {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: linear-gradient(137.66deg, #f5f5f5 21.13%, #f2f2f2 80.53%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -3px 0 #e4e4e4, inset 0 -4px 0 1px #fafafa;
  padding: 14px 16px;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  outline: none;
  box-sizing: border-box;
}

.ajn-auth-field input:focus {
  border-color: var(--color-primary, #4fbce6);
  background: #fff;
}

.ajn-auth-btn {
  appearance: none;
  width: 100%;
  border: 1px solid #000;
  border-radius: 12px;
  margin-top: 8px;
  padding: 14px 18px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  background: #000;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

body.ajn-auth .ajn-auth-btn:hover,
body.ajn-auth .ajn-auth-btn:focus-visible {
  background: var(--color-primary, #4fbce6);
  border-color: var(--color-primary, #4fbce6);
  color: #000;
  outline: none;
  box-shadow: 0 8px 22px rgba(79, 188, 230, 0.35);
}

body.ajn-auth .ajn-auth-btn:active {
  background: #3aa9d4;
  border-color: #3aa9d4;
  color: #000;
  box-shadow: none;
}

body.ajn-auth .ajn-auth-btn:disabled {
  opacity: 0.65;
  cursor: wait;
  box-shadow: none;
}

.ajn-auth-hint {
  margin: 14px 0 0;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.45);
  text-align: center;
}

.ajn-auth-error {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 13px;
  line-height: 1.4;
}

.ajn-auth-back {
  font-size: 13px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.55);
  text-decoration: none;
}

.ajn-auth-back:hover {
  color: #000;
}

.ajn-auth-form[hidden] {
  display: none !important;
}
