/* ===== Reset & Fonts ===== */
/* NOTE: this file is loaded on every public page. The universal selector
   must not set font-family — as a direct declaration it defeats inheritance
   on every element, so nested spans fell back to Arial instead of Aspira.
   The brand face is set on body in header.css via var(--font-sans). */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.main-container-login {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 700px;
  /* FA-864 (Phone layout): a 16 px gutter each side on a phone. */
  padding: 0 16px;
  background-position: top;
  background-color: var(--black);
}

/* ===== Login Card ===== */
.login-container {
  background: var(--ink-700);
  border-radius: 24px;
  box-shadow: 0 6px 20px color-mix(in srgb, var(--true-black) 50%, transparent);
  /* FA-864: as wide as the screen allows inside its gutter, never past 380 px. */
  width: 100%;
  max-width: 380px;
  padding: 40px 30px;
  text-align: center;
  border-top: 6px solid var(--brand);
}

.login-container h1 {
  font-family: var(--font-heading);
  background: linear-gradient(90deg, var(--brand), var(--brand-hover));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 26px;
  margin-bottom: 10px;
  /* FA-923: the heading token now, so the guard sees it — Boris at 400, never a faked bold. */
  font-weight: var(--fw-regular);
}

.color-login-chnage {
  font-family: var(--font-heading);
  font-weight: var(--fw-regular);
  color: var(--white);
}

.login-container p {
  color: var(--grey-500);
  font-size: 14px;
  margin-bottom: 30px;
}

/* ===== Labels (FA-864) =====
   Each box is named above it; the name stays while the person types. */
.login-container .login-label {
  display: block;
  margin: 14px 0 0;
  text-align: left;
  color: var(--grey-300);
  font-size: 13px;
  font-weight: var(--fw-bold);
}

.login-container .login-label + input {
  margin-top: 6px;
}

/* ===== Input Fields ===== */
.login-container input {
  width: 100%;
  padding: 12px 15px;
  margin: 12px 0;
  border-radius: 50px;
  border: 1px solid var(--ink-600);
  font-size: 14px;
  background: var(--ink-700);
  color: var(--white);
}

.login-container input::placeholder {
  color: var(--grey-500);
}

.login-container input:focus {
  border-color: var(--brand);
  outline: none;
  box-shadow: 0 0 6px color-mix(in srgb, var(--procom-orange) 40%, transparent);
}

/* ===== Button ===== */
.login-btn {
  width: 100%;
  background: linear-gradient(90deg, var(--brand), var(--brand-hover));
  color: var(--text-on-brand);
  border: none;
  padding: 14px;
  font-size: 16px;
  border-radius: 50px;
  cursor: pointer;
  margin-top: 15px;
  transition: 0.3s;
}

.login-btn:hover {
  background: var(--brand);
}

/* ===== Footer Links ===== */
.login-container .links {
  margin-top: 20px;
  font-size: 13px;
  color: var(--grey-500);
}

.login-container .links a {
  background: linear-gradient(90deg, var(--brand), var(--brand-hover));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  font-weight: bold;
}

.login-container .links a:hover {
  text-decoration: underline;
}

/* ===== Refusal (W1-02) =====
   The form used to come back blank whether the password was wrong, the
   account was closed or the session had gone. Dark panel, orange rule, the
   same family as the inputs it sits above. */
.login-error {
  background: color-mix(in srgb, var(--procom-orange) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--procom-orange) 45%, transparent);
  border-left: 3px solid var(--brand);
  border-radius: 10px;
  padding: 12px 15px;
  margin-bottom: 6px;
  text-align: left;
}

/* FA-874: "You are signed out." — a plain line, not a refusal. */
.login-said {
  border: 1px solid var(--grey-600);
  border-radius: 10px;
  padding: 12px 15px;
  margin-bottom: 6px;
}

.login-said p {
  color: var(--white);
  font-size: 13.5px;
  line-height: 1.5;
  margin: 0;
}

.login-error p {
  color: var(--orange-100);
  font-size: 13.5px;
  line-height: 1.5;
  margin: 0;
}

.login-error p + p { margin-top: 6px; }
