/* Ticket 064f: the sign-in gate, Training and Content, Marking, Prequalification, Sites,
   Projects, Visitors, Administrators, Audit log, Update personnel, Import. Layout only. */

/* ---------- sign-in, forgot and set password: the mock-up's card ---------- */
.gate-card { border-radius: 2px; box-shadow: none; border: 1px solid #e4e4e7; background: #fff; padding: 1.5rem; max-width: 24rem; }
.gate-card h1 { font-size: 1rem; line-height: 1.5rem; font-weight: 600; margin: 0 0 0.25rem; }
.gate-card .lede { font-size: 0.875rem; color: #71717a; margin: 0 0 1rem; }
.gate-card label { font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: #52525b; }
.gate-card input { min-height: 2.5rem; border-radius: 2px; font-size: 0.875rem; }
.gate-card button[type="submit"], .gate-card .action { width: 100%; min-height: 2.5rem; border-radius: 2px; }
.gate-card a { font-size: 0.8125rem; }

/* ---------- Training and Content: cards padded like the mock-up's course cards ---------- */
.modulecard .shotwrap { padding: 0; }
.modulecard .shot { border-radius: 0; }
.modulecard .cardbody { padding: 0.75rem 1rem 1rem; }
.modulecard .cardtitle { font-size: 0.9375rem; line-height: 1.35; font-weight: 500; }
.modulecard .cardcode { font-size: 0.6875rem; letter-spacing: 0.04em; }

/* ---------- Audit log and other filter rows: compact, labels above ---------- */
.controls { gap: 0.75rem; align-items: flex-end; margin-bottom: 1rem; }
.controls .field { flex-direction: column; align-items: flex-start; gap: 0.25rem; font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.04em; color: #52525b; }
.controls .field select, .controls .field input { min-height: 2.5rem; font-size: 0.875rem; text-transform: none; letter-spacing: 0; border-radius: 2px; width: auto; min-width: 12rem; }
@media (max-width: 30rem) { .controls .field, .controls .field select { width: 100%; } }

/* ---------- Forms: Add administrator, Add subcontractor, Sites, Import ---------- */
main form label:not(:has(> input[type="checkbox"])):not(:has(> input[type="radio"])) { font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: #52525b; }
main form label input:not([type="checkbox"]):not([type="radio"]), main form label select, main form label textarea { text-transform: none; letter-spacing: 0; font-size: 0.875rem; font-weight: 400; color: #0a0a0a; border-radius: 2px; }
main form button[type="submit"], main form .action { border-radius: 2px; min-height: 2.5rem; }
main .panel > header + * { }
.modulecard { text-align: left; align-items: stretch; }
.modulecard .cardbody { align-self: stretch; align-items: flex-start; text-align: left; }
.controls .field select { max-width: 20rem; }

/* Gate pages (ticket 070): the signed-in pages' white bar across the top, then the sign-in card centred under it (075), a thin border.
   The same block is in the staff gate's stylesheet (apps/trainee/assets/look.css); gateParity.test.ts keeps them equal. */
.gate, .screen.gate.on { --gx: 2rem; place-items: start stretch; align-content: start; padding: 0; background: #fafafa; }
.gate::before {
  content: 'Precise Training Platform'; display: flex; align-items: center; box-sizing: border-box; height: 3.5rem;
  padding: 0 var(--gx) 0 calc(var(--gx) + 6.13rem); font-size: 14px; color: #52525b;
  background: linear-gradient(#d4d4d8, #d4d4d8) calc(var(--gx) + 5.38rem) 50% / 1px 1.5rem no-repeat,
    url(/admin/assets/atp-logo.svg) var(--gx) 50% / auto 1.75rem no-repeat, #fff;
  border-bottom: 1px solid #e4e4e7;
}
.gate .gate-card { justify-self: center; width: 100%; max-width: 26rem; margin: 10vh auto 2rem; padding: 2rem; background: #fff; border: 1px solid #e4e4e7; border-radius: 2px; box-shadow: none; }
@media (max-width: 40rem) { .gate .gate-card { justify-self: stretch; width: auto; max-width: none; margin: 1.5rem 1rem; padding: 1.5rem; } }
.gate .gate-logo { display: none; }
@media (max-width: 40rem) { .gate, .screen.gate.on { --gx: 1rem; } }
