/* === GLOBAL === */

html, body {
  background: #050505;
  color: #00ff00;
  font-family: "Courier New", monospace;
  margin: 0;
  padding: 0;
  height: 100%;
}

/* center EVERYTHING */
body {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* === HEADER (optional, won't break layout) === */

header {
  position: absolute;
  top: 0;
  width: 100%;
  padding: 20px;
  border-bottom: 1px solid #00ff00;
}

/* === LOGIN LAYOUT === */

.login {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.login form {
  display: flex;
  flex-direction: column !important;  /* force it */
  align-items: center;
  gap: 12px;
}

/* === INPUTS === */

input {
  width: 260px;
  padding: 10px;

  background: #050505;
  color: #00ff00;
  border: 1px solid #00ff00;

  font-family: inherit;
}

/* remove autofill weirdness */
input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #050505 inset;
  -webkit-text-fill-color: #00ff00;
}

/* placeholder styling */
::placeholder {
  color: #00ff00;
  opacity: 0.5;
}

input::placeholder {
  font-family: "Courier New", monospace;
}

/* selection */
::selection {
  background: #00ff00;
  color: #050505;
}

/* focus fix (no white border) */
input:focus {
  outline: none;
  border: 1px solid #00ff00;
}

/* fake password masking */
#pass {
  -webkit-text-security: disc;
}

/* === BUTTON === */

button {
  padding: 10px 20px;
  background: #050505;
  border: 1px solid #00ff00;
  color: #00ff00;
  cursor: pointer;
}

button:hover {
  background: rgba(0,255,0,0.1);
}

/* === RESPONSE TEXT === */

#response {
  margin-top: 10px;
  opacity: 0.7;
}

/* === SCANLINES === */

body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  pointer-events: none;

  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 255, 0, 0.05),
    rgba(0, 255, 0, 0.05) 1px,
    transparent 1px,
    transparent 3px
  );

  z-index: 999;
}

/* === SCROLLBAR === */

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #050505;
}

::-webkit-scrollbar-thumb {
  background: #00ff00;
  border-radius: 5px;
  box-shadow: 0 0 5px #00ff00;
}

::-webkit-scrollbar-thumb:hover {
  background: #00cc00;
}

/* === UNAUTHORISED PAGE === */

.unauth {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.unauth-text {
  color: #ff0000;
  font-size: 32px;
  letter-spacing: 4px;
  text-shadow: 0 0 8px #ff0000;
  animation: slowFlicker 2s infinite;
}

/* flicker */
@keyframes slowFlicker {
  0%   { opacity: 1; }
  5%   { opacity: 0.2; }
  10%  { opacity: 1; }
  20%  { opacity: 0.6; }
  30%  { opacity: 1; }
  50%  { opacity: 0.3; }
  70%  { opacity: 1; }
  100% { opacity: 0.9; }
}

.page {
  max-width: 800px;
  padding: 40px;
  margin: auto;
}