/* =========================
   GLOBAL RESET
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "JetBrains Mono", monospace;
}

body {
    min-height: 100vh;
    background: #050505;
    color: #e0ffe8;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 40px 20px 80px;  
}

@media (max-width: 600px) {
    body {
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
        padding: 20px 10px 80px;  
    }
}

/* =========================
   MATRIX CANVAS
========================= */
#matrix {
  position: fixed;
  inset: 0;
  z-index: 0;
}

/* =========================
   NEON CURSOR GLOW
========================= */
.cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0,255,136,0.25), transparent 65%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 1;
  filter: blur(35px);
}

/* =========================
   LOGIN CARD (FIXED)
========================= */
.login-card {
  position: relative;
  z-index: 2;

  width: 360px;
  max-width: 90vw;

  padding: 36px 32px;

  background: rgba(10, 10, 10, 0.85);
  border-radius: 14px;
  border: 1px solid rgba(0, 255, 136, 0.25);

  box-shadow:
    0 0 30px rgba(0, 255, 136, 0.25),
    0 30px 90px rgba(0, 0, 0, 0.6);

  backdrop-filter: blur(12px);
  animation: fadeIn 1s ease;
}

/* =========================
   HEADER
========================= */
.terminal-title {
  text-align: center;
  margin-bottom: 8px;
  font-size: 26px;
  color: #00ff88;
  text-shadow: 0 0 14px rgba(0,255,136,0.9);
}

.cursor {
  animation: blink 1s infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.subtitle {
  text-align: center;
  font-size: 13px;
  opacity: 0.6;
  margin-bottom: 26px;
}

/* =========================
   ERROR MESSAGE
========================= */
.error-message {
  text-align: center;
  font-size: 13px;
  color: #ff4444;
  margin-bottom: 16px;
  min-height: 18px;
  opacity: 0.9;
}

.helper-text {
  margin-top: -8px;
  margin-bottom: 14px;
  text-align: center;
  font-size: 12px;
  color: rgba(224, 255, 232, 0.72);
}

.strength-meter {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  margin-top: -12px;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.strength-meter span {
  display: block;
  height: 100%;
  width: 0%;
  transition: width 0.2s ease, background-color 0.2s ease;
  background: #ff6b6b;
}

/* =========================
   INPUT FIELDS
========================= */
.input-group {
  position: relative;
  margin-bottom: 22px;
}

.input-group input,
.input-group select {
  width: 100%;
  padding: 14px 12px;

  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(0, 255, 136, 0.35);
  border-radius: 8px;

  color: #e0ffe8;
  font-size: 14px;
  outline: none;

  transition: all 0.25s ease;
}

.input-group input:focus,
.input-group select:focus {
  border-color: #00ff88;
  box-shadow:
    0 0 0 1px rgba(0,255,136,0.6),
    0 0 18px rgba(0,255,136,0.6);
}

/* =========================
   PASSWORD TOGGLE
========================= */
.input-group.password .toggle-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  opacity: 0.6;
}

.input-group.password .toggle-icon:hover {
  opacity: 1;
}

/* =========================
   LOGIN BUTTON
========================= */
button {
  width: 100%;
  padding: 14px;
  margin-top: 6px;

  background: linear-gradient(135deg, #00ff88, #00ccaa);
  color: #000;

  border: none;
  border-radius: 8px;

  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.2px;

  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

button:hover {
  box-shadow: 0 0 28px rgba(0,255,136,0.9);
  transform: translateY(-1px);
}

/* =========================
   LOADING STATE
========================= */
button.loading {
  background: #0b0b0b;
  color: #00ff88;
  border: 1px solid #00ff88;
  pointer-events: none;
}

/* =========================
   FOOTER
========================= */
.footer-text {
  margin-top: 18px;
  text-align: center;
  font-size: 12px;
  opacity: 0.6;
}

.footer-text a {
  color: #00ff88;
  text-decoration: none;
}

/* =========================
   ANIMATIONS
========================= */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   SIGNUP GRID
========================= */
.login-card.signup-card {
  width: 650px;
  max-width: 95vw;
  padding: 24px 32px;
}

.login-card.signup-card .subtitle {
  margin-bottom: 14px;
}

.login-card.signup-card .input-group {
  margin-bottom: 14px;
}

.login-card.signup-card .input-group input,
.login-card.signup-card .input-group select {
  padding: 10px 12px;
}

.login-card.signup-card button {
  padding: 10px;
}

.login-card.signup-card .strength-meter {
  margin-top: -8px;
  margin-bottom: 10px;
}

.login-card.signup-card .helper-text {
  margin-top: -4px;
  margin-bottom: 10px;
}

.signup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}

.full-width {
  grid-column: span 2;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.footer-links .footer-text {
  margin-top: 10px;
}

@media (max-width: 600px) {
  body {
    height: auto;
    min-height: 100vh;
    overflow-y: auto;
    padding: 20px 10px;
  }
}
