/* ===========================================================
   Freedom4um - Register Page Styles
   Matches look/feel of Latest Comments & Read Article pages
   =========================================================== */

/* Override global wrapper centering for register page */
body.register-page .content-wrapper {
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100% !important;
  max-width: none !important;
}

/* Main red-framed parchment box */
body.register-page main.article-frame {
  background-color: #F9E9C7;      /* parchment-like cream */
  border: 1px solid #A32D2D;      /* dark red frame */
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
  padding: 1.5rem 2rem;
  margin-top: 0;                  /* align below nav bar */
  margin-left: 40px;              /* aligns under nav bar */
  margin-right: 40px;
  width: calc(100% - 80px);       /* full width minus margins */
  box-sizing: border-box;
}

/* Heading alignment */
body.register-page h2 {
  margin-top: 0.1em;     /* raise closer to top of frame */
  margin-bottom: 0.8em;  /* slightly tighter spacing below */
  font-size: 1.5em;      /* consistent with Latest Comments page */
  color: #000;
}

/* ===========================================================
   Form layout and structure
   =========================================================== */

.form-wrapper {
  display: flex;
  justify-content: flex-start;
  margin-top: 10px;
  overflow-x: auto;
}

.form-table {
  width: auto;
  table-layout: fixed;
  border-collapse: collapse;
}

.form-table th,
.form-table td:first-child {
  white-space: nowrap;
  text-align: right;
  padding-right: 10px;
  width: 1%;
}

.form-table td:nth-child(2) input {
  width: 250px;
  min-width: 200px;
  white-space: nowrap;
  box-sizing: border-box;
}

.form-table td:nth-child(3) {
  white-space: normal;
  text-align: left;
  padding-left: 10px;
  width: auto;
}

/* CAPTCHA block */
.captcha-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.captcha-container .refresh-button {
  padding: 4px 8px;
  font-size: 1em;
  cursor: pointer;
}

.form-table .button-row td {
  text-align: center;
  padding-top: 15px;
}

/* Error message formatting */
.error-message {
  color: red;
  font-size: 0.9em;
  margin-top: 6px;
}

.general-error {
  color: red;
  font-size: 1em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 15px;
}

.info-text {
  font-size: 0.8em;
  font-style: italic;
}

/* Consistent button styling */
.button {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: bold;
  font-family: "Times New Roman", Times, serif;
  color: var(--bg-color);
  background: linear-gradient(to right, #A32D2D, #7D1F1F);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s, box-shadow 0.2s;
}

.button:hover {
  background: linear-gradient(to right, #7D1F1F, #A32D2D);
  color: var(--bg-color);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
  .form-table th, .form-table td {
    display: block;
    width: 100%;
  }
  input, textarea, select {
    width: 100%;
  }
}
