/* Electronic Board — login / 403 standalone pages.
   Self-contained, depends only on styles.css for brand variables. */

body.page-auth {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: var(--bg);
  font-family: 'Montserrat', sans-serif;
  padding: 24px;
}

.brand-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 6px;
  display: flex;
}
.brand-bar span { flex: 1; }
.brand-bar .b-green   { background: var(--green); }
.brand-bar .b-magenta { background: var(--magenta); }
.brand-bar .b-yellow  { background: var(--yellow); }
.brand-bar .b-blue    { background: var(--blue); }

.auth-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 40px 36px;
  width: 100%;
  max-width: 420px;
  text-align: center;
}

.auth-logo {
  height: 56px;
  margin-bottom: 20px;
}

.auth-card h1 {
  font-size: 1.5rem;
  margin: 0 0 8px 0;
}

.auth-sub {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 24px 0;
}

.auth-mode-dev {
  display: inline-block;
  background: var(--yellow-soft);
  color: var(--yellow-text);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  margin-bottom: 16px;
}

.auth-label {
  display: block;
  text-align: left;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.auth-card select,
.auth-card input[type="email"],
.auth-card input[type="password"],
.auth-card button {
  width: 100%;
  font-family: inherit;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  border: 1px solid var(--border);
  box-sizing: border-box;
}

.auth-card select,
.auth-card input[type="email"],
.auth-card input[type="password"] {
  background: #fff;
  margin-bottom: 16px;
}

.auth-card input[type="email"]:focus,
.auth-card input[type="password"]:focus {
  outline: none;
  border-color: var(--green);
}

.auth-card button {
  background: var(--green);
  color: #fff;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: background 120ms ease;
}
.auth-card button:hover { background: var(--green-dark); }

.auth-error {
  background: var(--magenta-soft);
  color: var(--magenta-text);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.auth-link { display: block; text-decoration: none; }

/* 403 specifics */
.auth-code {
  font-family: 'Poppins', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--magenta);
  line-height: 1;
  margin-bottom: 8px;
}

.auth-detail {
  background: var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-size: 0.85rem;
  margin: 20px 0;
  text-align: left;
}
.auth-detail code {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 1px 6px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.85em;
}

.auth-btn, .auth-alt {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}
.auth-btn  { background: var(--green); color: #fff; }
.auth-btn:hover { background: var(--green-dark); }
.auth-alt  { color: var(--muted); margin-left: 8px; }
.auth-alt:hover { color: var(--black); }
