/* ============================================================
   MOBILE FORMS – REGISTER / LOGIN PAGES
   Clean + Safe Version
   ============================================================ */

/* -------- Base -------- */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #ffffff;
  color: #111827;

  /* IMPORTANT: allow scrolling */
  overflow-y: auto;

  /* reserve space for bottom tabs */
  padding-bottom: calc(70px + env(safe-area-inset-bottom));
}

/* -------- Form Container -------- */
.form-container {
  width: 90%;
  max-width: 600px;
  margin: 0 auto;
  padding: 1rem 0;
}

/* -------- Headings -------- */
.form-container h1,
.form-container h2,
.form-container h3 {
  text-align: center;
  margin: 0.5rem 0;
}

/* -------- Tables / Forms -------- */
.form-container table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.form-container td {
  padding: 0.5rem;
  vertical-align: top;
}

.form-container td:first-child {
  padding-top: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.form-container td:last-child {
  padding-bottom: 6px;
}

/* -------- Inputs -------- */
.form-container input[type="text"],
.form-container input[type="password"],
.form-container select {
  width: 100%;
  padding: 0.55rem;
  font-size: 1rem;
  
  box-sizing: border-box;

  border: 1px solid #d1d5db;
  border-radius: 4px;
  background: #ffffff;
  color: #111827;
}

/* -------- Submit Button -------- */
.form-container input[type="submit"] {
  width: 100%;
  margin-top: 1.2rem;
  padding: 0.75rem;

  font-size: 1.1rem;
  font-weight: 600;

  background: #2563eb;
  color: #ffffff;

  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.form-container input[type="submit"]:active {
  opacity: 0.9;
}

/* -------- Normal Links (THIS FIXES YOUR ISSUE) -------- */
a {
  color: #2563eb;
  text-decoration: underline;
  font-size: 1rem;
}

a:visited {
  color: #1d4ed8;
}

/* -------- Bottom Tabs -------- */
.bottom-tabs {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;

  height: calc(54px + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);

  background: #111827;

  display: flex;
  justify-content: space-around;
  align-items: center;

  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.25);
  z-index: 1000;
}

/* bottom tab links ONLY */
.bottom-tabs a {
  flex: 1;
  text-align: center;

  text-decoration: none;
  font-size: 13px;
  font-weight: 600;

  color: #9ca3af;
  padding: 6px 0;
}

.bottom-tabs a.active {
  color: #2563eb;
}
