/* Sign-in page — MTC Events brand: navy #120D33, teal #00DCC8 */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
/* Always reserve room for the scrollbar, so short and long pages line up exactly. */
html { scrollbar-gutter: stable; }
body { min-height: 100vh; display: flex; flex-direction: column; background: #F5F5F8; color: #120D33; font: 400 15px/1.5 'Manrope', system-ui, sans-serif; }

.topbar { background: #120D33; }
.topbar-inner { max-width: 1240px; margin: 0 auto; padding: 14px 24px; min-height: 72px; display: flex; align-items: center; }
.logo { display: block; height: 28px; width: auto; }
.strip { height: 4px; background: #00DCC8; }

main { flex: 1; display: flex; justify-content: center; align-items: flex-start; padding: 72px 16px 48px; }
.wrap { width: 100%; max-width: 440px; }
.card { background: #fff; border: 1px solid #E3E2EC; border-radius: 16px; padding: 32px; }
.badge { width: 44px; height: 44px; border-radius: 12px; background: #120D33; display: flex; align-items: center; justify-content: center; }
h1 { margin: 20px 0 8px; font-size: 26px; line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; }
.lead { margin: 0 0 24px; color: #57536E; }
.lead strong { color: #120D33; overflow-wrap: anywhere; }

label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
input { width: 100%; height: 48px; padding: 0 14px; border: 1.5px solid #D6D5E0; border-radius: 10px; background: #fff; font: 500 16px 'Manrope', system-ui, sans-serif; color: #120D33; outline: none; transition: border-color .15s, box-shadow .15s; }
input::placeholder { color: #7D7A93; }
input:focus { border-color: #120D33; box-shadow: 0 0 0 3px rgba(18,13,51,.14); }
input[aria-invalid="true"] { border-color: #B4232C; }
input.code { height: 60px; text-align: center; font-size: 28px; font-weight: 800; letter-spacing: .5em; padding-left: .5em; }

.error { margin: 8px 0 0; font-size: 14px; font-weight: 600; color: #B4232C; }

.btn { margin-top: 20px; width: 100%; height: 50px; border: 0; border-radius: 12px; background: #00DCC8; color: #120D33; font: 800 15px 'Manrope', system-ui, sans-serif; display: flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; transition: background .15s; }
.btn:hover { background: #19C9B7; }
.btn:disabled { background: #E8E7EF; color: #6E6A86; cursor: wait; }
.btn:focus-visible, .link:focus-visible { outline: 3px solid #00DCC8; outline-offset: 2px; }

.row { margin-top: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; }
.link { background: none; border: 0; padding: 0; font: 600 14px 'Manrope', system-ui, sans-serif; color: #120D33; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link:disabled { color: #6E6A86; cursor: default; }
.hint { margin: 12px 0 0; font-size: 14px; color: #57536E; }

.footer { margin: 20px 0 0; text-align: center; font-size: 13px; color: #57536E; }

@media (max-width: 480px) {
  main { padding-top: 40px; }
  .card { padding: 24px; }
}

@media (max-width: 640px) {
  .logo { height: 22px; }
}
