.auth-body {
  min-height: 100vh;
  color: #0b1016;
  background:
    linear-gradient(120deg, rgba(11, 16, 22, .92), rgba(11, 16, 22, .62)),
    url("../assets/images/mt-scott-view.jpg") center / cover fixed;
}

.auth-navbar {
  background: rgba(6, 10, 15, .94);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.auth-main {
  min-height: calc(100vh - 164px);
}

.auth-shell {
  max-width: 1080px;
  margin-inline: auto;
}

.auth-shell-narrow {
  max-width: 720px;
}

.auth-card {
  overflow: hidden;
  background: rgba(255, 255, 255, .97);
  border: 0;
  border-radius: 1.25rem;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .35);
}

.auth-aside {
  min-height: 100%;
  color: #fff;
  background:
    linear-gradient(160deg, rgba(20, 28, 37, .96), rgba(11, 16, 22, .96));
}

.auth-aside .eyebrow {
  color: #ffc24a;
}

.auth-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 5vw, 4.25rem);
  font-weight: 400;
  letter-spacing: -.05em;
  line-height: 1;
}

.auth-form .form-label {
  font-size: .88rem;
  font-weight: 800;
}

.auth-form .form-control {
  min-height: 3.25rem;
  border: 3px solid #000;
  border-radius: .8rem;
}

.auth-form .form-control:focus {
  border-color: #000;
  box-shadow: 0 0 0 .25rem rgba(243, 167, 18, .2);
}

.auth-form,
.membership-form,
#competition-entry-form {
  border: 3px solid #000 !important;
  padding: 1rem;
}

form .form-control,
form .form-select,
form .form-check-input {
  border: 3px solid #000;
}

.membership-form input.form-control,
.membership-form select.form-select,
.membership-form textarea.form-control,
.membership-form input.form-check-input {
  border: 3px solid #000 !important;
  background-color: #fff;
  box-shadow: 0 0 0 1px #000;
}

.membership-form input.form-control:focus,
.membership-form select.form-select:focus,
.membership-form textarea.form-control:focus,
.membership-form input.form-check-input:focus {
  border-color: #000 !important;
  box-shadow: 0 0 0 1px #000, 0 0 0 .25rem rgba(243, 167, 18, .35);
}

form .form-control:focus,
form .form-select:focus,
form .form-check-input:focus {
  border-color: #000;
}

.otp-input {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: .55rem;
  text-align: center;
}

.auth-footer {
  color: rgba(255, 255, 255, .55);
  background: #060a0f;
}

.member-panel {
  background: rgba(255, 255, 255, .97);
  border: 0;
  border-radius: 1.25rem;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .28);
}

.role-badge {
  color: #0b1016;
  background: #f3a712;
}

@media (max-width: 767.98px) {
  .auth-aside {
    min-height: auto;
  }
}
.entry-shell { max-width: 980px; }
.drop-zone { border: 3px dashed #000; background: #f8f5ee; cursor: pointer; transition: .18s ease; }
.drop-zone:hover, .drop-zone:focus, .drop-zone.is-dragging { border-color: #000; background: #fff7df; outline: 3px solid rgba(240,173,30,.2); }

/* Online membership application */
.membership-application-wrap { max-width: 980px; margin: 0 auto; }
.membership-print-card { border: 0; }
.membership-options .form-check { display: flex; align-items: flex-start; cursor: pointer; border: 3px solid #000 !important; }
.membership-family-inactive { opacity: .55; }
.club-use { font-size: .95rem; }
.dues-policy { border: 3px solid #000; padding: 1rem; background: #fffdf5; }
.dues-policy .table-bordered > :not(caption) > * > * { border: 3px solid #000; }

@media print {
  @page { size: letter; margin: .45in; }
  .auth-navbar, .auth-footer, .no-print, .alert, .visually-hidden-focusable { display: none !important; }
  .auth-body, .auth-main, .auth-main > .container { background: #fff !important; padding: 0 !important; margin: 0 !important; }
  .membership-application-wrap { max-width: none; margin: 0; }
  .membership-print-card { box-shadow: none !important; border: 0 !important; }
  .membership-print-card .card-body { padding: 0 !important; }
  .membership-form { border: 3px solid #000 !important; padding: .2in !important; }
  .membership-form .form-control,
  .membership-form .form-select,
  .membership-form .form-check-input {
    border: 3px solid #000 !important;
    border-radius: .15rem !important;
    padding: .15rem .1rem !important;
    min-height: 1.7rem;
    background: #fff !important;
    color: #000 !important;
  }
  .membership-form textarea.form-control { min-height: 2.6rem; resize: none; }
  .membership-form .form-label { margin-bottom: .08rem; font-size: .75rem; font-weight: 700; text-transform: uppercase; }
  .membership-form .form-text, .membership-form small { color: #222 !important; font-size: .68rem; }
  .membership-options .form-check { padding: .25rem !important; border: 3px solid #000 !important; }
  .dues-policy { border: 3px solid #000 !important; padding: .25rem !important; }
  .membership-family-inactive { opacity: 1; }
  .membership-form .row { --bs-gutter-y: .42rem; }
  .print-heading { margin-bottom: .6rem !important; }
  .print-heading h2 { font-size: 1.25rem; }
  .print-heading p { font-size: .9rem; }
  .club-use { margin-top: .55rem !important; padding-top: .45rem !important; }
}

/* Heading contrast: H1 is white on the dark/photo application background and black inside white surfaces. */
.auth-body h1 { color: #fff; }
.auth-card h1,
.member-panel h1,
.membership-print-card h1,
.card.bg-white h1 { color: #0b1016; }

.entry-thumbnail {
  width: 132px;
  height: 96px;
  object-fit: cover;
  flex: 0 0 auto;
  background: #fff;
}

@media print {
  /* No passwords or one-time credentials are ever included on a printed membership form. */
  .password-only,
  input[type="password"],
  [autocomplete="new-password"],
  .one-time-preview { display: none !important; }
}

.auth-card .auth-aside h1 { color: #fff; }

/* Competition entry previews and signed-in session masonry gallery. */
.entry-review-preview { width: 150px; }
.entry-review-preview .entry-thumbnail { width: 150px; height: auto; max-height: 180px; object-fit: contain; display: block; margin-inline: auto; background: #fff; }
.entry-session-masonry { columns: 2 220px; column-gap: 1rem; }
.entry-session-card { break-inside: avoid; display: inline-block; width: 100%; margin: 0 0 1rem; padding: .75rem; background: #fff; border: 2px solid #111; border-radius: .75rem; box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.entry-session-card img { display: block; width: 100%; height: auto; border-radius: .5rem; background: #f3f3f3; }
.entry-session-card h6 { margin: .65rem 0 .35rem; color: #0b1016; font-weight: 800; }
.entry-session-card code { display: block; overflow-wrap: anywhere; color: #495057; font-size: .72rem; }
.entry-session-card-text { min-height: 7rem; }

/* Calendar editor modes and accessible field-state cues. */
.event-editor { border: 3px solid transparent; }
.event-editor-add { border-color: #198754; }
.event-editor-edit { border-color: #f0a500; }
.form-select.status-draft {
  color: #3d2a00;
  font-weight: 800;
  background-color: #fff0c2;
  border-color: #b66a00;
  border-width: 3px;
}
#entry-status-warning { color: #7a4700; }
.btn-cancel-edit {
  color: #5c3600;
  background: #fff8e8;
  border: 3px solid #d47a00;
}
.btn-cancel-edit:hover,
.btn-cancel-edit:focus-visible {
  color: #221400;
  background: #ffe0a1;
  border-color: #8f5000;
}
.was-validated .form-control:invalid,
.was-validated .form-select:invalid {
  border-color: #b02a37;
  border-width: 3px;
}
.pending-member-name {
  text-decoration-line: underline;
  text-decoration-color: #b42318;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
