/* Colours and layout follow addons/custom/royce_web_login/static/src/scss/login.scss
   desktop >= 992px: brand panel left, form right · below: brand band on top */
* { box-sizing: border-box; }
body { margin: 0; background: #fff; color: #231f20; -webkit-font-smoothing: antialiased;
  font-family: system-ui, -apple-system, "Segoe UI", "Noto Sans Thai", "Sarabun", "Leelawadee UI", "Thonburi", Roboto, Arial, sans-serif; }
.shell { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(420px, 1fr); min-height: 100vh; min-height: 100dvh; }

.brand { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column;
  justify-content: space-between; gap: 48px; padding: clamp(48px, 6vw, 88px); color: #fff;
  background: radial-gradient(900px 620px at 10% 16%, rgba(238, 47, 127, .30), transparent 60%),
    radial-gradient(1100px 760px at 100% 115%, rgba(238, 47, 127, .45), transparent 62%),
    linear-gradient(155deg, #1a0611 0%, #2a0a1c 38%, #4e0b2e 72%, #8c0e4d 100%); }
.brand::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: url("/static/img/grain.svg"); pointer-events: none; }
.rings { position: absolute; right: -22%; bottom: -30%; z-index: -1; width: 100%; aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, .07); border-radius: 50%; }
.rings::before, .rings::after { content: ""; position: absolute; border: 1px solid rgba(255, 255, 255, .06); border-radius: 50%; }
.rings::before { inset: 14%; }
.rings::after { inset: 28%; border-color: rgba(238, 47, 127, .18); }
.swirl { position: absolute; right: -8%; bottom: -12%; z-index: -1; width: 64%; max-width: 680px; aspect-ratio: 1;
  background: url("/static/img/logo-mark.png") center / contain no-repeat; opacity: .10;
  filter: saturate(.6) brightness(1.8); animation: spin 120s linear infinite; }
.lockup { position: relative; display: flex; align-items: center; gap: clamp(18px, 2vw, 30px); }
.glow { position: absolute; top: 50%; left: -70px; z-index: -1; width: 300px; height: 300px; transform: translateY(-50%);
  background: radial-gradient(circle, rgba(238, 47, 127, .50) 0%, rgba(238, 47, 127, 0) 66%); }
.mark { width: clamp(96px, 9.4vw, 140px); height: auto; filter: drop-shadow(0 16px 32px rgba(0, 0, 0, .45)); }
.word { width: auto; height: clamp(80px, 8.2vw, 124px); filter: drop-shadow(0 8px 24px rgba(0, 0, 0, .35)); }
.brand-inner { position: relative; max-width: 620px; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; color: rgba(255, 255, 255, .72);
  font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 36px; height: 1px; background: #ee2f7f; }
h1 { margin: 0 0 32px; font-size: clamp(32px, 3.2vw, 52px); font-weight: 700; line-height: 1.25; }
h1 span { display: inline-block; white-space: nowrap; }
.certs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); }
.certs-label { margin-right: 6px; color: rgba(255, 255, 255, .6); font-size: 13px; }
.cert { padding: 6px 14px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; background: rgba(255, 255, 255, .06);
  font-size: 13px; font-weight: 600; letter-spacing: .08em; }

.panel { display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 48px clamp(24px, 5vw, 72px); background: #fff; }
.card { width: 100%; max-width: 420px; }
h2 { margin: 0 0 6px; font-size: 30px; line-height: 1.25; }
.subtitle { margin: 0 0 28px; color: #6c6a70; font-size: 15px; }
label { display: block; margin: 18px 0 8px; color: #3b3940; font-size: 14px; font-weight: 600; }
input { width: 100%; height: 50px; padding: 0 16px; border: 1px solid #dddbe2; border-radius: 12px; background: #fbfafc;
  color: #231f20; font: inherit; font-size: 16px; outline: none; }
input::placeholder { color: #a9a6ae; }
input:focus { border-color: #bf2269; background: #fff; box-shadow: 0 0 0 4px rgba(191, 34, 105, .15); }
.pw { position: relative; }
.pw input { padding-right: 52px; }
.peek { position: absolute; top: 50%; right: 6px; width: 40px; height: 40px; transform: translateY(-50%); display: grid;
  place-items: center; border: 0; border-radius: 10px; background: transparent; color: #8a8790; cursor: pointer; }
.peek:hover, .peek:focus-visible { color: #bf2269; background: rgba(191, 34, 105, .08); outline: none; }
.peek .slash { display: none; }
.peek[aria-pressed="true"] .slash { display: inline; }
.submit { width: 100%; min-height: 52px; margin-top: 28px; border: 0; border-radius: 12px; color: #fff; font: inherit;
  font-size: 16px; font-weight: 600; cursor: pointer; background: linear-gradient(135deg, #ee2f7f 0%, #bf2269 55%, #8c0e4d 100%);
  box-shadow: 0 12px 26px -12px rgba(140, 14, 77, .75); }
.submit:hover { filter: brightness(1.06); }
.submit:focus-visible { box-shadow: 0 0 0 4px rgba(191, 34, 105, .3); outline: none; }
.alert { margin: 0; padding: 12px 14px; border-radius: 12px; background: #fdecf2; color: #8c0e2d; font-size: 14px; }
.lang { position: absolute; top: 8px; right: 10px; z-index: 5; padding: 4px 10px; border-radius: 999px; background: #fff;
  color: #8a8790; font-size: 13px; box-shadow: 0 1px 6px rgba(0, 0, 0, .18); }
.lang a { color: #6c6a70; text-decoration: none; padding: 2px 3px; }
.lang a[aria-current="true"] { color: #bf2269; font-weight: 700; }
footer { margin-top: 24px; color: #8a8790; font-size: 13px; text-align: center; }
.join { text-align: center; }
.public .event-closed { margin-top: 18px; font-size: 22px; }
.event-head { margin: 0 0 4px; font-size: clamp(30px, 3.2vw, 40px); font-weight: 800; line-height: 1.3; color: #c62828; overflow-wrap: anywhere; }
.event-date { margin: 0 0 14px; font-size: 18px; font-weight: 600; color: #3b3940; }
/* The heading above a QR code (event_head.html); the same in style.css for the admin QR page. */
:root { --event-blue: #1e3a8a; }
.eventtitle { text-align: center; margin: 0 0 14px; }
.eventtitle h1.event-head { margin: 0 0 2px; }
.eventtitle h3.event-day { margin: 0; font-size: clamp(20px, 2vw, 26px); font-weight: 700; line-height: 1.35; color: var(--event-blue); }
.eventtitle h6.event-time { margin: 2px 0 0; font-size: 16px; font-weight: 600; line-height: 1.35; color: var(--event-blue); }
.event-closed { margin: 0 0 12px; font-size: 18px; font-weight: 700; color: #8c0e4d; }
.join .eventtitle { margin-bottom: 6px; } /* the code's own white border makes up the rest of the gap */
/* As large as the screen height allows, so that a short laptop screen shows the whole code. */
.qr-code { display: block; width: clamp(240px, 48vh, 372px); height: auto; aspect-ratio: 1; margin: 0 auto; }
.qr-link { display: block; width: max-content; max-width: 100%; margin: 0 auto; }
.join-how { margin: 6px 0 0; font-size: 16px; font-weight: 600; }
.join-url { margin: 4px 0 0; color: #6c6a70; font-size: 13px; overflow-wrap: anywhere; }
.join-steps { margin: 4px 0 0; font-size: 14px; color: #3b3940; }
.join-link { display: none; }
.no-code .join-link { display: block; padding: 18px; border-radius: 12px; color: #fff; font-size: 18px; font-weight: 600;
  text-decoration: none; background: linear-gradient(135deg, #ee2f7f 0%, #bf2269 55%, #8c0e4d 100%); }
.staff { display: inline-block; margin-top: 20px; padding: 10px 28px; border: 1px solid #bf2269; border-radius: 12px;
  color: #bf2269; font-weight: 600; text-decoration: none; }
.staff:hover, .staff:focus-visible { background: rgba(191, 34, 105, .08); }
.back { margin: 20px 0 0; text-align: center; font-size: 14px; }
.back a { color: #bf2269; }
.panel { padding-top: 24px; padding-bottom: 24px; }
@media (min-width: 992px) and (max-height: 760px) {
  .brand { padding-top: 36px; padding-bottom: 36px; gap: 24px; }
  .mark { width: 96px; }
  .word { height: 80px; }
  h1 { margin-bottom: 20px; font-size: 32px; }
  footer { margin-top: 16px; }
}
/* On a phone the code stays, to hold up for somebody else to scan; the button below is for the phone's owner. */
@media (max-width: 991.98px) {
  .panel { padding: 14px 10px 24px; }
  /* As large as the screen allows while the whole code stays above the fold. Black on pure white, nothing on top. */
  .qr-code { width: clamp(230px, min(89vw, 100vh - 240px), 460px); }
  .join-how { font-size: 15px; }
  .join-url { font-size: 12px; }
  .join .join-link, .join .staff { margin-left: 10px; margin-right: 10px; }
  .join-link { display: block; margin-top: 18px; padding: 16px; border-radius: 12px; color: #fff; font-size: 18px; font-weight: 600;
    text-decoration: none; background: linear-gradient(135deg, #ee2f7f 0%, #bf2269 55%, #8c0e4d 100%); }
  .staff { margin-top: 14px; }
}

@media (max-width: 991.98px) {
  .shell { display: flex; flex-direction: column; }
  .brand { align-items: center; justify-content: center; gap: 16px; padding: 32px 20px 28px; text-align: center; }
  .mark { width: 58px; }
  .word { height: 52px; }
  .glow { left: -60px; width: 220px; height: 220px; }
  .eyebrow, .certs { display: none; }
  h1 { margin: 0; font-size: 22px; }
  .panel { flex: 1; justify-content: flex-start; padding: 32px 20px 24px; }
  footer { margin-top: 28px; }
}
/* The current event's details (event_about.html): in the brand panel on a computer, under the code on a phone. */
/* Every row the size of the panel's heading (smaller on a low screen, so that all of it fits), bold and
   normal rows taking turns. */
.about { margin: 0 0 24px; font-size: clamp(19px, min(3.2vw, 3.5vh), 52px); line-height: 1.35; overflow-wrap: anywhere; text-align: left; }
.about p, .about h3, .about ul { margin: 0; font-size: 1em; }
.about-name, .about h3, .about .about-status { font-weight: 700; }
.about-when, .about-note, .about ul { font-weight: 400; }
.about h3 { text-transform: uppercase; }
.about-note { white-space: pre-line; }
.about ul { padding-left: 1.1em; }
.brand-inner:has(.about) { max-width: 880px; } /* large rows need the panel's whole width */
.about-below { display: none; margin: 20px 0 0; padding: 16px; border: 1px solid #ecdbe3; border-radius: 12px; background: #fdf6f9; }
@media (max-width: 991.98px) { .about-side { display: none; } .about-below { display: block; font-size: clamp(18px, 5.6vw, 24px); } }
/* A low computer screen: the logo and the gaps give their room to the details. */
@media (min-width: 992px) and (max-height: 1200px) {
  .brand:has(.about) { padding-top: 32px; padding-bottom: 32px; gap: 20px; }
  .brand:has(.about) .mark { width: 88px; }
  .brand:has(.about) .word { height: 72px; }
  .brand:has(.about) .certs { padding-top: 14px; }
}
@media (max-width: 991.98px) and (max-height: 520px) { .brand { display: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .swirl { animation: none; } }
