/* ===========================================================
   Freedom4um - Sign In Page
   Matches unified red-frame look across site
   =========================================================== */

/* Remove global width restriction */
body.signin-page .content-wrapper {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  display: flex;
  justify-content: flex-start;
  background-color: var(--bg-color);
}

/* Red frame container */
body.signin-page main.article-frame {
  background-color: #F9E9C7;           /* parchment tone */
  border: 1px solid #A32D2D;           /* dark red border */
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.15);
  padding: 1.2rem 2rem;
  margin-top: 0;
  margin-left: 40px;                   /* aligns under “Home” nav link */
  margin-right: 40px;                  /* symmetrical spacing */
  width: calc(100% - 80px);
  box-sizing: border-box;
}

/* Title header */
main.article-frame h2 {
  font-size: 1.4em;
  color: #000;
  margin-top: 0.2rem;
  margin-bottom: 0.8rem;
}

/* ===============================
   Sign-in Form Styling
   =============================== */

/* Center table neatly */
.form-wrapper {
  display: flex;
  justify-content: left;
  margin-top: 10px;
}

/* Compact table formatting */
.form-table {
  width: auto !important;
  table-layout: auto;
  border-collapse: collapse;
}

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

.form-table td:nth-child(2) input {
  width: auto;
  min-width: 180px;
}

.form-table td:nth-child(3) {
  width: 100%;
  text-align: left;
  padding-left: 10px;
}

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

/* Buttons (same style as rest of site) */
.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);
}

/* Info & error messages */
.info-text {
  font-size: 0.85em;
  font-style: italic;
  color: #3C2F2F;
}

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

/* Responsive tweak */
@media (max-width: 900px) {
  body.signin-page main.article-frame {
    width: auto;
    margin: 10px 20px;
  }
  .form-table,
  .form-table tr,
  .form-table td {
    display: block;
    width: 100%;
  }
  .form-table td:first-child {
    text-align: left;
    padding-right: 0;
  }
}
