/* ============================================================
   ATLAS ONE — Login Screen Styles
   Also hides the app shell until the gate decides access.
   ============================================================ */

/* Hide the whole app until JS confirms a session. Removed once
   the gate passes (or for view-only links). */
body.auth-locked .app-shell { display: none; }

.login-wrap {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grey-100);
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 360px;
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: 14px;
  padding: 32px 28px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
}

/* The official Atlas wordmark, recolourable via `color` (CSS mask +
   currentColor). One SVG, any colour: blue here, white on the sidebar. */
.atlas-mark {
  display: block;
  background-color: currentColor;
  -webkit-mask: url("../assets/atlas-wordmark.svg") no-repeat center / contain;
          mask: url("../assets/atlas-wordmark.svg") no-repeat center / contain;
}

.login-logo {
  color: var(--blue);
  width: 150px;
  aspect-ratio: 1530.5 / 187.2;
  margin: 0 auto;
}

.login-sub {
  color: var(--grey-500);
  font-size: 13px;
  text-align: center;
  margin: 6px 0 22px;
}

.login-field { margin-bottom: 16px; }

.login-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--grey-500);
  margin-bottom: 6px;
}

.login-input {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 12px;
  font-size: 14px;
  font-family: inherit;
  border: 1px solid var(--grey-200);
  border-radius: 8px;
  outline: none;
  transition: border-color var(--transition-fast, 0.15s);
}
.login-input:focus { border-color: var(--blue); }

.login-msg {
  font-size: 13px;
  color: var(--red);
  background: var(--red-light);
  border-radius: 8px;
  padding: 9px 11px;
  margin-bottom: 14px;
}
.login-msg--info {
  color: var(--grey-500);
  background: var(--blue-light);
}

.login-btn {
  width: 100%;
  padding: 11px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  color: var(--white);
  background: var(--blue);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background var(--transition-fast, 0.15s);
}
.login-btn:hover { background: var(--blue-hover); }
.login-btn:disabled { opacity: 0.7; cursor: default; }

.login-forgot {
  margin-top: 14px;
  background: none;
  border: none;
  color: var(--blue);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  align-self: center;
}
.login-forgot:hover { text-decoration: underline; }
