/* ZAPP Atlas — login styles. Part of the split from base.css. */

/* ---- Coming soon placeholder ------------------------------------------- */

.coming-soon {
  /* main is a flex column; growing to fill it lets the content centre in
     whatever height is left between header and footer. */
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  text-align: center;
  padding: 5rem 1.5rem;
}

.coming-soon__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
}

.coming-soon__eyebrow::before {
  content: "";
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: currentColor;
}

.coming-soon h1 {
  font-size: var(--text-xl);
  font-weight: 600;
  margin: 0;
}



/* ---- Login -------------------------------------------------------------- */

.login {
  width: 100%;
  max-width: 32.5rem;
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem 1.5rem;
  text-align: center;
}

/* Logo stacked above the wordmark. */
.login__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.login__logo {
  height: 3.5rem;
  width: auto;
  display: block;
}

.login__wordmark {
  font-weight: 700;
  font-size: var(--text-2xl);
  letter-spacing: 0.02em;
  color: var(--ink);
}

.login__tagline {
  margin: 0 0 2rem;
  color: var(--muted);
}

.login-card {
  align-self: stretch;
  text-align: left;
  background: var(--white);
  border-radius: 0.875rem;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(15, 76, 92, 0.12);
}

/* Dark header strip at the top of the card. */
.login-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--card-dark);
  color: var(--white);
  padding: 1rem 1.5rem;
}

.login-card__title {
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 22.5px;
  margin: 0;
  color: var(--white);
}

.login-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.12);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}

.login-card__badge-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: #a6ce39;
}

.login-card__body {
  padding: 2rem 2rem 1.75rem;
}

.login-card__lead {
  font-size: var(--text-sm);
  line-height: 21.45px;
  color: #5c7d8a;
  margin: 0 0 1.5rem;
  text-align: center;
}

.login-card__submit {
  width: 100%;
  justify-content: center;
  font-size: var(--text-base);
  padding: 0.85rem 1rem;
}

/* Lower note section with a tinted background and ORCID badge. */
.login-card__note {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem 1.5rem;
  background: rgba(0, 122, 140, 0.04);
  border-top: 1px solid rgba(0, 80, 100, 0.13);
}

.login-card__note p {
  margin: 0;
  font-size: var(--text-sm);
  line-height: 21.45px;
  color: #5c7d8a;
}

.login-card__note .icon--orcid {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.1rem;
}

.login-card__register {
  color: var(--teal);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.login-card__register:hover {
  text-decoration: underline;
}

.login-card__note .icon--external {
  width: 0.85em;
  height: 0.85em;
  margin-left: 0.25rem;
  vertical-align: -0.1em;
}

/* ORCID-branded sign-in button. */
.btn--orcid {
  background: #a6ce39;
  color: var(--ink);
  font-weight: 700;
}

.btn--orcid:hover {
  background: #9ac42f;
}

.btn--orcid .icon--orcid {
  width: 1.3em;
  height: 1.3em;
}

.login__terms {
  font-size: var(--text-sm);
  color: var(--muted);
  margin: 1.5rem 0 0;
}

/* Dev sign-in: deliberately unlike the ORCID card above it. A dashed amber
   frame reads as scaffolding rather than a second way in, so nobody mistakes
   it for a supported route. Only rendered when ZAPP_DEV_AUTH is on. */
.login-dev {
  margin-top: 2rem;
  padding: 1.1rem 1.25rem 1.25rem;
  border: 1px dashed #d9a441;
  border-radius: var(--radius-lg);
  background: #fdf9f0;
  text-align: left;
}

.login-dev__tag {
  margin: 0;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9a6b12;
}

.login-dev__text {
  margin: 0.4rem 0 0.9rem;
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--muted);
}

.login-dev__text code {
  padding: 0.05rem 0.3rem;
  border-radius: 0.25rem;
  background: #f3e7cd;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.95em;
  color: #7a5410;
}

.login-dev__submit {
  width: 100%;
  border: 1px solid #d9a441;
  background: var(--white);
  color: #7a5410;
  font-weight: 600;
}

.login-dev__submit:hover {
  background: #fbf3e3;
}

