/* ---------------------------
   xreg.ai Custom Global Styles
---------------------------- */

html, body {
  margin: 0;
  padding: 0;
  background: #000;
  color: #f1f1f1;
  font-family: sans-serif;
  text-align: center;
}

body {
  padding: 10px 0 0; /* Small top bump for all pages */
}

/* Header logo or banner */
img.header-img {
  display: block;
  margin: 0 auto 0px;
  width: 80%;
  height: auto;
  object-fit: contain;
}

/* Legacy avatar styling (not used) */
img.avatar {
  display: none;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
  margin-bottom: 0;
}

input, textarea {
  display: block;
  margin: 12px auto;
  padding: 12px;
  width: 100%;
  max-width: 300px;
  font-size: 16px;
  border: 1px solid #333;
  background: #111;
  color: #f1f1f1;
}

button, .xreg-button {
  padding: 14px 32px;
  font-size: 16px;
  background: linear-gradient(to bottom, #00c3a5, #009e85);
  color: #fff;
  border: none;
  font-weight: bold;
  cursor: pointer;
  margin-top: 12px;
  display: inline-block;
  text-decoration: none;
  border-radius: 12px; /* clean rounded rectangle */
  box-shadow:
    0 6px 12px rgba(0, 167, 142, 0.35),
    inset 0 1px 1px rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease-in-out;
}

/* Hover with glow ring */
button:hover, .xreg-button:hover {
  background: linear-gradient(to bottom, #00e6c0, #00b597);
  box-shadow:
    0 0 0 4px rgba(0, 195, 165, 0.2),        /* subtle glow ring */
    0 8px 16px rgba(0, 167, 142, 0.45),     /* soft shadow depth */
    inset 0 1px 1px rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  animation: pulse 0.25s ease-out;
}

/* Pressed effect */
button:active, .xreg-button:active {
  box-shadow:
    0 3px 6px rgba(0, 128, 110, 0.4),
    inset 0 1px 1px rgba(0, 0, 0, 0.15);
  transform: translateY(2px);
}

.login-link {
  color: #00a78e;
  font-size: 15px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

.login-link:hover {
  color: #00c3a5;           /* brighter teal on hover */
  text-decoration: underline;
}

footer {
  font-size: 12px;
  color: #999;
  padding: 20px;
  line-height: 1.6;
  max-width: 680px;
  margin: 60px auto 0;
  text-align: center;
}

/* ---------------------------
   Responsive Tweaks for Mobile
---------------------------- */

@media (max-width: 600px) {
  body {
    padding-top: 5px;
  }

  .container {
    padding: 0 15px;
  }

  img.header-img {
    max-height: 180px;
  }

  h1 {
    font-size: 22px;
    margin-bottom: 16px;
  }

  p {
    font-size: 14px;
    line-height: 1.5;
  }

  button, .xreg-button {
    padding: 10px 18px;
    font-size: 15px;
    box-shadow: 0 3px 0 #007f6b; /* still 3D on mobile */
  }

  button:hover, .xreg-button:hover {
    box-shadow: 0 5px 8px rgba(0, 167, 142, 0.3);
    transform: translateY(-0.5px);
  }

  input, textarea {
    font-size: 15px;
    padding: 10px;
  }
}
