/* Form-only adaptation of the shared HOME scene. The actual CTFd forms,
   their validations and submit destinations are identical in both modes. */
.givctf-retro-auth-page body { margin-bottom: 0; padding-bottom: 0; }
.givctf-retro-auth-page main { padding-bottom: 0; }
.givctf-retro-auth {
  /* Reserve the central desk below forms; the taller side monitors frame them.
     Long registrations grow naturally, with the form above the decorative layer. */
  --auth-console-space: calc(var(--control-height) * .5);
  padding-top: 22px;
  padding-bottom: calc(var(--auth-console-space) + 24px);
}
.givctf-retro-auth .givctf-retro-home__content { width: min(100%, 520px); }
/* El anclaje de la consola al viewport ya no vive aqui: lo hace la escena
   compartida (`givctf-retro-home.css`) para todas sus pantallas. Aqui solo
   queda el boton de pausa, que en el alta tiene que seguir a la vista aunque
   el formulario sea mas alto que la pantalla. */
.givctf-retro-auth .givctf-retro-home__motion { position: fixed; }
.givctf-retro-auth .givctf-retro-home__logo { width: 100px; transform: none; margin-bottom: 8px; }
.givctf-retro-auth .givctf-retro-home__title { font-size: 32px; margin-bottom: 16px; }
.givctf-retro-auth .givctf-retro-home__motion { bottom: calc(var(--auth-console-space) + 12px); }
.givctf-retro-auth__panel { text-align: left; padding: 20px; }
.givctf-retro-auth .givctf-retro-auth__kicker { color: var(--home-cyan); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 10px; }
.givctf-retro-auth #givctf-access-title { font: 400 17px/1.7 'GivctfHomePixel', monospace !important; color: var(--home-amber); margin: 0 0 12px; }
.givctf-retro-auth .givctf-retro-auth__intro { font-size: 13px; line-height: 1.7; margin: 0 0 14px; color: #c6d9ee; }
.givctf-retro-auth .givctf-access-form { gap: 12px; }
.givctf-retro-auth .form-label { display: block; font: 400 13px/1.6 'JetBrains Mono', monospace; color: #edf8ff; margin-bottom: 6px; }
.givctf-retro-auth :is(.form-control, .form-select) {
  min-height: 46px; width: 100%; border: 2px solid #199dbb !important; border-radius: 0;
  background: #020c29 !important; color: #edf8ff !important;
  font: 400 16px/1.5 'JetBrains Mono', monospace !important;
  padding: 10px 12px; box-shadow: inset 3px 3px 0 #01071c;
}
.givctf-retro-auth .form-control::placeholder { color: #91a5be; opacity: 1; font-size: 13px; }
.givctf-retro-auth :is(.form-control, .form-select):focus { border-color: var(--home-amber) !important; outline: 2px solid var(--home-amber) !important; outline-offset: 2px; box-shadow: none !important; }
.givctf-retro-auth :is(.form-check-input, input[type="checkbox"]) { accent-color: var(--home-cyan); border-radius: 0; }
.givctf-retro-auth :is(.form-text, .givctf-avatar-hint, .givctf-access-legal) { font: 400 12px/1.7 'JetBrains Mono', monospace; color: #c6d9ee; overflow-wrap: anywhere; }
.givctf-retro-auth :is(.givctf-access-recovery, .givctf-access-oauth, .givctf-access-legal a) { color: var(--home-cyan); font: 400 12px/1.7 'JetBrains Mono', monospace; text-decoration: underline; text-underline-offset: 4px; }
.givctf-retro-auth .givctf-access-recovery { padding: 4px 0; min-height: 32px; }
.givctf-retro-auth .givctf-access-oauth { margin-top: 18px; }
.givctf-retro-auth .givctf-access-register { border-top: 2px solid #173658; padding-top: 12px; margin-top: 16px; gap: 12px; }
.givctf-retro-auth .givctf-access-register p { font: 400 13px/1.6 'JetBrains Mono', monospace; color: #c6d9ee; }
.givctf-retro-auth .givctf-retro-home__cta { width: 100%; max-width: none; letter-spacing: 0; text-transform: uppercase; }
/* Stop the classic word-glitch decoration inside these forms. */
.givctf-retro-auth .givctf-fx-word { animation: none; text-shadow: none; filter: none; }
.givctf-retro-auth .givctf-fx-word::before,
.givctf-retro-auth .givctf-fx-word::after { display: none; }
.givctf-retro-auth .alert { border: 2px solid #e97bdd; border-left-width: 6px; border-radius: 0; background: #25132e; color: #ffe2f6; font: 400 13px/1.7 'JetBrains Mono', monospace; text-align: left !important; box-shadow: 3px 3px 0 #020820; overflow-wrap: anywhere; }
.givctf-retro-auth .alert-info { border-color: var(--home-cyan); color: #d6fbff; background: #072536; }
.givctf-retro-auth .alert .btn-close { min-width: 44px; min-height: 44px; padding: 0; opacity: 1; background-position: center; background-size: 12px; }
.givctf-retro-auth .givctf-avatar-grid { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); max-height: 160px; gap: 8px; }
.givctf-retro-auth .givctf-avatar-opcion { border: 2px solid #199dbb; border-radius: 0; }
.givctf-retro-auth .givctf-avatar-opcion.is-seleccionado { border-color: var(--home-amber); box-shadow: 2px 2px 0 var(--home-amber); }
.givctf-retro-auth :is(a, button, input, select, textarea):focus-visible { outline: 2px solid var(--home-amber); outline-offset: 3px; }
/* Registration is the tall form, and only it needs the room. On a short desktop
   screen it gives up decoration, never form controls, so the whole alta still
   lands inside the viewport; login keeps the full identity of HOME. */
@media (min-width: 600px) and (max-height: 960px) {
  .givctf-retro-auth--register { padding-top: 12px; }
  .givctf-retro-auth--register .givctf-retro-home__logo { width: 64px; margin-bottom: 4px; }
  .givctf-retro-auth--register .givctf-retro-home__title { font-size: 22px; margin-bottom: 6px; }
  .givctf-retro-auth--register .givctf-retro-auth__panel { padding: 16px 20px; }
  .givctf-retro-auth--register .givctf-access-register { margin-top: 12px; padding-top: 10px; }
  .givctf-retro-auth--register .givctf-retro-auth__kicker { margin-bottom: 6px; }
  .givctf-retro-auth--register #givctf-access-title { font-size: 15px; margin-bottom: 8px; }
  .givctf-retro-auth--register .givctf-retro-auth__intro { margin-bottom: 8px; }
  .givctf-retro-auth--register .givctf-access-form { gap: 10px; }
  .givctf-retro-auth--register .givctf-avatar-grid { max-height: 116px; }
}
@media (max-width: 599px) {
  .givctf-retro-auth { --auth-console-space: var(--control-height); padding-top: 24px; padding-bottom: calc(var(--auth-console-space) + 64px); }
  .givctf-retro-auth .givctf-retro-home__logo { width: 100px; }
  .givctf-retro-auth .givctf-retro-home__title { font-size: 28px; margin-bottom: 20px; }
  .givctf-retro-auth__panel { padding: 20px 16px; }
  .givctf-retro-auth #givctf-access-title { font-size: 14px; }
  /* The console is full width here, so the pause control has no free column
     beside the form: it moves under the navbar, where it covers no field. */
  .givctf-retro-auth .givctf-retro-home__motion { top: calc(var(--givctf-retro-nav-h, 60px) + 10px); right: 10px; bottom: auto; }
}
