/*
 * BIOHACKING 360 LABS — AUTH-04C5
 *
 * Solo registro, solo PC.
 * No contiene reglas aplicables a pantallas <1100px.
 */

@media screen and (min-width:1100px) {

  /* Tarjeta más ancha únicamente en registro. */
  body.bh-auth-page
  .bh-auth-panel:has(#bh-register-form) {
    width:min(820px,calc(100vw - 72px)) !important;
    max-width:820px !important;
    padding:26px 34px !important;
  }

  /* Distribución controlada sin mover el HTML. */
  #bh-register-form {
    display:grid !important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    grid-template-rows:
      auto auto auto auto auto auto auto auto;
    column-gap:22px;
    row-gap:8px;
    align-items:start;
  }

  /* Fila 1: Nombre / Apellido. */
  #bh-register-form > .bh-register-name-grid {
    grid-column:1 / -1;
    grid-row:1;
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:22px;
    margin-bottom:7px;
  }

  #bh-register-form
  .bh-register-name-grid label {
    margin:0 0 7px !important;
    display:block;
  }

  #bh-register-form
  .bh-register-name-grid input {
    width:100% !important;
    min-width:0;
  }

  /* Fila 2: etiquetas teléfono y correo. */
  #bh-register-form > label[for="phone_national"] {
    grid-column:1;
    grid-row:2;
  }

  #bh-register-form > label[for="email"] {
    grid-column:2;
    grid-row:2;
  }

  /* Fila 3: teléfono con bandera / email. */
  #bh-register-form > .iti,
  #bh-register-form > #phone_national {
    grid-column:1;
    grid-row:3;
    width:100%;
    min-width:0;
  }

  #bh-register-form > #email {
    grid-column:2;
    grid-row:3;
    width:100%;
    min-width:0;
  }

  /* Ayuda del selector telefónico. */
  #bh-register-form > .bh-phone-help {
    grid-column:1;
    grid-row:4;
    margin:0 0 5px !important;
  }

  /* Fila 5: etiquetas de contraseñas. */
  #bh-register-form > label[for="password"] {
    grid-column:1;
    grid-row:5;
  }

  #bh-register-form > label[for="password_confirmation"] {
    grid-column:2;
    grid-row:5;
  }

  /* Fila 6: contraseñas. */
  #bh-register-form > .bh-password {
    grid-column:1;
    grid-row:6;
    width:100%;
    min-width:0;
  }

  #bh-register-form > #password_confirmation {
    grid-column:2;
    grid-row:6;
    width:100%;
    min-width:0;
  }

  /* Instrucciones y acción: ancho completo. */
  #bh-register-form > .bh-auth-intro {
    grid-column:1 / -1;
    grid-row:7;
    margin:10px 0 8px !important;
  }

  #bh-register-form > .bh-auth-submit {
    grid-column:1 / -1;
    grid-row:8;
    margin:0 !important;
    width:100%;
  }

  /* Alinear etiquetas con sus respectivos campos. */
  .bh-auth-panel #bh-register-form
  > label:not(.bh-auth-check) {
    display:block;
    margin:8px 0 0 !important;
    font-size:13px;
    font-weight:700;
  }

  /* Evitar deformaciones de componentes. */
  #bh-register-form .iti input[type="tel"] {
    width:100% !important;
    min-width:0;
  }

  #bh-register-form .bh-password input {
    width:100%;
    min-width:0;
  }
}
