/* ==========================================================================
   Empyrean Login Page (Dark Mode)
   File: /css/login.less -> compile to /css/login.css

   Goals:
   - Use main.less tokens/mixins (no duplicated palette here)
   - Make login + forgot-password pages match the dark card aesthetic
   - Override global forms.less input rules by styling inside .loginCard
   ========================================================================== */
/* ==========================================================================
   CircusDB - Empyrean Arts Theme Refresh (Main)
   File: /css/main.less  -> compiles to /css/main.css
   ========================================================================== */
/* When importing main.less as a token library, set @emitMainCss: 0 first. */
/* -----------------------------
   1) Design Tokens (Palette)
   ----------------------------- */
/* Page / brand backdrop */
/* Dark “card” surfaces */
/* Text on dark */
/* Accent (taupe) */
/* Links on dark */
/* Inputs on dark */
/* Radii */
/* -----------------------------
   2) Mixins
   ----------------------------- */
/* ==========================================================================
   3) CSS OUTPUT (guarded)
   ========================================================================== */
/* Layout wrapper */
.loginPage {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 14px 32px 14px;
  box-sizing: border-box;
}
/* Logo */
.loginLogoLink {
  display: inline-block;
  margin: 12px 0 10px 0;
}
.loginLogo {
  display: block;
  width: 190px;
  height: auto;
  margin: 0 auto;
}
/* Card */
.loginCard {
  width: 100%;
  max-width: 460px;
  background: rgba(12, 10, 15, 0.88);
  border: 1px solid rgba(234, 223, 244, 0.26);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.24);
  padding: 18px 16px 16px 16px;
  box-sizing: border-box;
  text-align: left;
}
.loginTitle {
  margin: 0 0 12px 0;
  color: #f6f3f9;
  font-size: 22px;
  line-height: 1.2;
  text-align: center;
}
/* Alerts */
.loginAlert {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 10px 12px;
  margin: 10px 0 12px 0;
  background: rgba(255, 255, 255, 0.1);
  color: #f6f3f9;
  font-size: 15px;
  line-height: 1.35;
}
.loginAlert a {
  color: #d8c5ff;
}
.loginAlert a:hover {
  color: #ede4ff;
}
/* Slightly colored dark alerts (still readable on dark UI) */
.loginAlertWarning {
  background: rgba(214, 168, 109, 0.12);
  border-color: rgba(214, 168, 109, 0.35);
}
.loginAlertError {
  background: rgba(255, 77, 109, 0.12);
  border-color: rgba(255, 77, 109, 0.35);
}
.loginAlertSuccess {
  background: rgba(95, 230, 210, 0.12);
  border-color: rgba(95, 230, 210, 0.35);
}
/* Form */
.loginForm {
  margin: 0;
}
.loginField {
  margin: 12px 0;
}
.loginLabel {
  display: block;
  margin: 0 0 6px 0;
  color: rgba(246, 243, 249, 0.86);
  font-weight: 800;
  font-size: 14px;
}
/* IMPORTANT:
   forms.less is global, so we intentionally style inputs INSIDE the login card
   with higher specificity to avoid “invisible field” issues. */
.loginCard .loginInput {
  width: 100%;
  box-sizing: border-box;
  font-size: 16px;
  /* prevents iOS zoom */
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.09);
  color: #f6f3f9;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  transition: all 120ms ease;
}
.loginCard .loginInput::placeholder {
  color: rgba(246, 243, 249, 0.45);
}
.loginCard .loginInput:focus {
  outline: none;
  border-color: rgba(216, 197, 255, 0.55);
}
.loginCard .loginInput:focus:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(216, 197, 255, 0.22), 0 0 0 1px rgba(216, 197, 255, 0.45);
}
.loginCard .loginInput:hover {
  border-color: rgba(255, 255, 255, 0.3);
}
/* Autofill readability (Chrome/Safari) */
.loginCard input.loginInput:-webkit-autofill,
.loginCard input.loginInput:-webkit-autofill:hover,
.loginCard input.loginInput:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0px 1000px rgba(255, 255, 255, 0.09) inset;
  -webkit-text-fill-color: #f6f3f9;
  caret-color: #f6f3f9;
}
/* Actions */
.loginActions {
  margin: 14px 0 8px 0;
  text-align: center;
}
.loginButton {
  cursor: pointer;
  display: inline-block;
  font-size: 18px;
  font-weight: 900;
  padding: 10px 18px;
  min-width: 160px;
  color: #1a141f;
  background: #b6a79b;
  border: 1px solid #988372;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: all 120ms ease;
}
.loginButton:hover {
  background: #a59283;
}
.loginButton:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
/* Footer links */
.loginLinks {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(246, 243, 249, 0.18);
}
.loginLinksCol {
  flex: 1;
  text-align: left;
}
.loginLinksCol:last-child {
  text-align: right;
}
.loginLinksLabel {
  color: rgba(246, 243, 249, 0.86);
  font-size: 13px;
  margin-bottom: 4px;
}
.loginLinks a {
  color: #d8c5ff;
}
.loginLinks a:hover {
  color: #ede4ff;
}
/* Small screens: stack link columns */
@media (max-width: 420px) {
  .loginLinks {
    flex-direction: column;
  }
  .loginLinksCol,
  .loginLinksCol:last-child {
    text-align: left;
  }
  .loginLogo {
    width: 170px;
  }
}
