/* Fake local login (no backend) */

.fake-login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background:
    radial-gradient(circle at 18% 28%, rgba(255, 115, 0, 0.16), transparent 42%),
    radial-gradient(circle at 82% 72%, rgba(0, 140, 255, 0.16), transparent 42%),
    linear-gradient(180deg, #050a14, #000);
}

.fake-login-card {
  width: min(440px, 100%);
  border-radius: 24px;
  border: 1px solid rgba(249, 115, 22, 0.35);
  background: linear-gradient(145deg, rgba(12, 12, 14, 0.95), rgba(6, 10, 18, 0.92));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55), 0 0 40px rgba(0, 140, 255, 0.08);
  padding: 28px 26px 26px;
}

.fake-login-title {
  margin: 0 0 6px;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #f8fafc;
}

.fake-login-sub {
  margin: 0 0 22px;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--muted);
}

.fake-login-ref-hint {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: rgba(14, 165, 233, 0.08);
  font-size: 0.85rem;
  line-height: 1.45;
  color: #bae6fd;
}

.fake-login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fake-login-label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fdba74;
}

.fake-login-input {
  width: 100%;
  box-sizing: border-box;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.35);
  color: #f1f5f9;
  padding: 12px 14px;
  font-size: 1rem;
  font-weight: 600;
}

.fake-login-input:focus {
  outline: none;
  border-color: rgba(0, 140, 255, 0.55);
  box-shadow: 0 0 0 2px rgba(0, 140, 255, 0.2);
}

.fake-login-submit {
  margin-top: 4px;
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 900;
  font-size: 0.95rem;
  cursor: pointer;
  background: linear-gradient(90deg, #f97316, #ea580c);
  color: #0a0a0a;
}

.fake-login-submit:hover {
  filter: brightness(1.06);
}

.fake-login-error {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fecaca;
  background: rgba(220, 38, 38, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.35);
}

.fake-login-note {
  margin: 18px 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--muted);
}

.fake-login-field-hint {
  margin: -6px 0 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--muted);
}

.fake-login-captcha-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fake-login-captcha-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.fake-login-captcha-question {
  font-size: 1.1rem;
  font-weight: 900;
  color: #e0f2fe;
  letter-spacing: 0.04em;
  min-width: 5.5rem;
}

.fake-login-captcha-input {
  flex: 1 1 100px;
  max-width: 120px;
}

.fake-login-captcha-refresh {
  align-self: flex-start;
  background: none;
  border: 0;
  padding: 0;
  color: #38bdf8;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.fake-login-captcha-refresh:hover {
  color: #7dd3fc;
}

.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.header-user-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  max-width: 100%;
}

.header-user-line {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(360px, 100%);
}

.header-user-line strong {
  color: #fdba74;
  font-weight: 900;
}

.header-user-email-muted {
  display: inline-block;
  margin-left: 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  max-width: min(220px, 38vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}

.btn-header-logout {
  border: 1px solid rgba(248, 113, 113, 0.45) !important;
  background: rgba(220, 38, 38, 0.12) !important;
  color: #fecaca !important;
  font-size: 11px !important;
  padding: 6px 12px !important;
}

.btn-header-logout:hover {
  background: rgba(220, 38, 38, 0.22) !important;
}

.header-admin-badge {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.45);
  background: rgba(34, 197, 94, 0.12);
  color: #86efac;
}

@media (max-width: 900px) {
  .header-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .header-right {
    align-items: flex-start;
    width: 100%;
  }

  .header-user-row {
    justify-content: flex-start;
  }

  .main-nav {
    justify-content: flex-start;
  }
}
