/* =====================================================================
 * nlr-auth.css — WP1 (auth and boot screens) of the NLR SYSTEM port.
 * Implements shell SPEC §2.5 (NLC auth.css:2-19 + glow.css:2111-2132): login, request access (register),
 * first-manager setup, pending, boot / boot error. The scene comes from body.scene-auth (nlr-base.css).
 * ===================================================================== */
.auth-root { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 28px; }
.auth-card {
  position: relative; width: min(760px, 100%); padding: 34px 38px 38px; border-radius: 24px; color: #e6ecf3; font-family: Montserrat, Inter, sans-serif;
  border: 1px solid rgba(95,140,190,.4); border-top-color: rgba(212,175,55,.6); background: var(--panel);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.95);
}
.auth-card.narrow { width: min(520px, 100%); }
.auth-card * { font-family: Montserrat, Inter, sans-serif; }
.auth-brand { display: flex; align-items: center; gap: 15px; padding-bottom: 22px; border-bottom: 1px solid rgba(255,255,255,.08); }
.auth-brand img { height: 64px; width: auto; display: block; border-radius: 10px; object-fit: contain; }

.auth-heading { margin: 25px 0 20px; }
.auth-heading.centered { text-align: center; }
/* NLC loads Montserrat 600/700 only, so its 400/500 text renders with the 600 face: use 600 to look the same */
.auth-heading > span { color: #c9a54a; font: 700 12px Montserrat, sans-serif; letter-spacing: .24em; text-transform: uppercase; }
.auth-heading h1 {
  margin: 7px 0 8px; font: 700 clamp(25px, 4vw, 36px)/normal Montserrat, sans-serif; text-transform: uppercase; letter-spacing: .02em;
  background: var(--nlr-silver); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.auth-heading p { margin: 0; color: #c9d3df; font-size: 16px; font-weight: 600; line-height: 1.55; }

.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; margin: 0 0 20px; padding: 4px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); }
.auth-tabs button { border: 0; border-radius: 9px; padding: 11px; background: transparent; color: #aebbc9; font-weight: 800; font-size: 16px; line-height: 1.55; cursor: pointer; }
.auth-tabs button.active { background: rgba(212,175,55,.14); color: #f1d36a; box-shadow: inset 0 0 0 1px rgba(212,175,55,.5); }

.auth-form { display: grid; gap: 16px; }
.auth-form label { display: grid; gap: 7px; margin: 0; font-weight: 700; font-size: 14px; line-height: 1.55; color: #c9d3df; }
.auth-form label small { color: #8290a2; font-weight: 600; }
.auth-form input, .auth-form select {
  display: block; width: 100%; height: 50px; margin: 0; padding: 0 14px; font: 600 16px Montserrat, Inter, sans-serif; color: #fff;
  background: rgba(6,17,33,.6); border: 1px solid rgba(95,140,190,.35); border-radius: 12px; color-scheme: dark; outline: 0; transition: .18s;
}
.auth-form input:focus, .auth-form select:focus { border-color: rgba(212,175,55,.75); box-shadow: 0 0 0 3px rgba(212,175,55,.15); }
.auth-form select option { background: #0b1f3a; color: #fff; }
.auth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* "Arată" password toggle (auth.css:8 + glow.css:2129) */
.password-entry { position: relative; }
.password-entry input { padding-right: 82px; }
.password-toggle {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%); height: 34px; padding: 0 11px; border-radius: 8px; cursor: pointer;
  font-weight: 800; font-size: 14px; background: rgba(255,255,255,.06); color: #e6cd84; border: 1px solid rgba(212,175,55,.35);
}
.password-toggle:hover { border-color: rgba(212,175,55,.6); }

.auth-primary {
  min-height: 52px; border-radius: 11px; padding: 0 18px; font: 700 15px Montserrat, sans-serif; text-transform: uppercase; letter-spacing: .06em; color: #fff; cursor: pointer;
  text-shadow: 0 1px 2px rgba(0,0,0,.45); background: linear-gradient(115deg, rgba(212,175,55,.85), rgba(233,207,122,.75) 45%, rgba(182,138,30,.85));
  border: 1px solid rgba(233,207,122,.7); box-shadow: 0 0 18px rgba(212,175,55,.3);
}
.auth-primary:disabled { opacity: .55; cursor: wait; }
.auth-card > .auth-primary { justify-self: start; }

/* the #msg box is the first child of the form (NLC .auth-message, auth.css:11 + glow.css:2131-2132) */
.auth-msg { margin: 0; font: 700 14px/1.55 Montserrat, Inter, sans-serif; }
.auth-msg:empty { display: none; }
.auth-msg:not(:empty) { padding: 12px 14px; border-radius: 10px; background: rgba(200,16,46,.14); border: 1px solid rgba(255,99,120,.5); color: #ffd5dc; }
.auth-msg.ok:not(:empty) { background: rgba(52,199,120,.12); border-color: rgba(52,199,120,.5); color: #bff0d2; }

/* pending (auth.js:215): light-green disc, not overridden by glow in NLC */
.pending-mark { width: 76px; height: 76px; margin: 28px auto 8px; display: grid; place-items: center; border-radius: 50%; background: #eaf8ef; color: #198a4d; font-size: 37px; font-weight: 800; box-shadow: none; }
.pending-mark + .auth-heading { margin-top: 25px; }

/* boot (auth.js:680) */
.auth-loading { display: grid; justify-items: center; gap: 18px; padding: 50px 0; text-align: center; }
.auth-loading > span { width: 40px; height: 40px; border: 4px solid #dfe5ec; border-top-color: #d8aa2b; border-radius: 50%; animation: authspin .8s linear infinite; }
.auth-loading strong { color: #e6ecf3; font: 700 16px/1.55 Montserrat, sans-serif; }
.auth-loading p { margin: 0; color: #c9d3df; font-size: 14px; line-height: 1.55; }
.auth-loading.is-error { gap: 10px; }
@keyframes authspin { to { transform: rotate(360deg); } }

@media (max-width: 760px) {
  .auth-root { padding: 12px; }
  .auth-card { padding: 24px 18px; }
  .auth-row { grid-template-columns: 1fr; }
}
