/* EllGab Modern v1.0.42 — desktop guest-login presentation only.
   Do not alter SMF login submission, hashing, hidden fields or mobile layouts. */
@media screen and (min-width: 701px) {
  #upper_section #guest_form {
    display: grid !important;
    grid-template-columns: minmax(115px, 1fr) minmax(115px, 1fr) minmax(92px, auto) auto;
    align-items: center !important;
    gap: 8px !important;
    max-width: 660px;
    margin: 0;
    padding: 0;
    text-align: left;
  }
  #upper_section #guest_form > .info:first-child {
    grid-column: 1 / -1;
    margin: 0 0 4px !important;
    padding: 0;
    width: 100%;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #d9e4ee;
  }
  /* Existing explanation is repetitive once fields are clearly identified. */
  #upper_section #guest_form > .info:not(:first-child),
  #upper_section #guest_form > br {
    display: none !important;
  }
  #upper_section #guest_form input[name="user"],
  #upper_section #guest_form input[name="passwrd"],
  #upper_section #guest_form select[name="cookielength"] {
    box-sizing: border-box !important;
    display: block;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 36px !important;
    margin: 0 !important;
    padding: 7px 10px !important;
    background: #101c2c !important;
    border: 1px solid #446079 !important;
    border-radius: 7px !important;
    color: #f4efe7 !important;
    box-shadow: none !important;
    font-size: 0.87rem !important;
  }
  #upper_section #guest_form input::placeholder { color: #b8c8d8; opacity: 1; }
  #upper_section #guest_form input[type="submit"] {
    box-sizing: border-box !important;
    width: auto !important;
    min-width: 77px !important;
    height: 36px !important;
    margin: 0 !important;
    padding: 6px 14px !important;
    border-radius: 8px !important;
    background: #eabd76 !important;
    color: #152133 !important;
    font-weight: 700 !important;
    white-space: nowrap;
  }
  #upper_section #guest_form input:focus-visible,
  #upper_section #guest_form select:focus-visible {
    outline: 2px solid #eabd76 !important;
    outline-offset: 2px;
  }
  #upper_section #guest_form input[name="openid_identifier"] {
    grid-column: 1 / -1;
    max-width: 300px;
  }
  /* Avoid an empty Recent Posts enhancement list taking vertical room. */
  #upper_section .user > ul.reset:empty { display: none; }
}
@media screen and (min-width: 701px) and (max-width: 1100px) {
  #upper_section #guest_form {
    grid-template-columns: minmax(100px, 1fr) minmax(100px, 1fr);
  }
  #upper_section #guest_form select[name="cookielength"] { width: 100% !important; }
  #upper_section #guest_form input[type="submit"] { justify-self: start; }
}
