/* Login page — same palette and templating as the festivenomics.com landing:
   black canvas, top gradient band, center logo, and the neon gradient
   (orange -> cream -> cyan -> yellow) from the landing's login buttons,
   applied as borders on the card and button. */

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background-color: #000000;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #ffffff;
}

/* Neon gradients lifted from login-big.svg (border, top->bottom) and
   login-big-hover.svg (fill, left->right) */
:root {
  --neon-border: linear-gradient(180deg, #FF8A47 0%, #FFFE7B 25%, #64EEFF 50%, #FFFA34 100%);
  --neon-fill: linear-gradient(90deg, #FF8A47 0%, #FFFE7B 29%, #64EEFF 61%, #FFFA34 100%);
}

/* Same gradient band as the landing header */
.header-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 158px;
  background: linear-gradient(180deg, #7E7E7E -71.71%, rgba(217, 217, 217, 0.00) 100%);
  pointer-events: none;
}

.center-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 400px;
  padding: 0 16px;
  box-sizing: border-box;
}

/* Main center logo, as on the landing (398x244 there, scaled down here) */
.logo-mid {
  display: block;
  width: 298px;
  height: auto;
  margin-bottom: 40px;
}

/* Card: dark panel with a 1px neon gradient border
   (gradient painted on the border-box, panel color on the padding-box) */
.login-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  box-sizing: border-box;
  padding: 32px 28px;
  border: 1px solid transparent;
  border-radius: 12px;
  background:
    linear-gradient(#101010, #101010) padding-box,
    var(--neon-border) border-box;
}

.login-card h1 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 600;
  text-align: center;
}

.login-card label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: #cccccc;
}

.login-card input[type="text"],
.login-card input[type="password"] {
  padding: 10px 12px;
  border: 1px solid #444;
  border-radius: 8px;
  background: #0d0d0d;
  color: #ffffff;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.login-card input:focus {
  border-color: #64EEFF;
  box-shadow: 0 0 8px rgba(100, 238, 255, 0.35);
}

/* Neon button, shared by the login submit and the /apps hub links:
   gradient border like login-big.svg; on hover it fills with the gradient
   and glows, like login-big-hover.svg (blurred gradient halo) */
.neon-btn {
  position: relative;
  z-index: 0; /* own stacking context, so the ::before halo shows over the card */
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin-top: 6px;
  padding: 11px;
  border: 1px solid transparent;
  border-radius: 6px; /* rx=5.68 in the SVG */
  background:
    linear-gradient(#101010, #101010) padding-box,
    var(--neon-border) border-box;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s ease-in-out;
}

/* Blurred halo behind the button (SVG used feGaussianBlur stdDeviation=14) */
.neon-btn::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 8px;
  background: var(--neon-fill);
  filter: blur(14px);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease-in-out;
}

.neon-btn:hover,
.neon-btn:focus-visible {
  background: var(--neon-fill) border-box;
  color: #000000;
}

.neon-btn:hover::before,
.neon-btn:focus-visible::before {
  opacity: 0.8;
}

/* /apps hub page */
.signed-in {
  margin: 0 0 8px;
  font-size: 14px;
  color: #999999;
  text-align: center;
}

.app-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px;
}

.app-link .app-host {
  font-size: 12px;
  font-weight: 400;
  color: inherit;
  opacity: 0.65;
}

.logout-link {
  margin-top: 10px;
  font-size: 13px;
  color: #888888;
  text-align: center;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

.logout-link:hover {
  color: #ffffff;
}

.error {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #7a2e2e;
  border-radius: 8px;
  background: rgba(122, 46, 46, 0.25);
  color: #ff9c9c;
  font-size: 14px;
  text-align: center;
}
