/* Registro en la PC (versión web): el mismo formulario de la app, con formato de PC. La barra y el pie son los de la versión
   web, la vista previa del DNI (o de la licencia) queda a la izquierda y fija al bajar, y los campos van de a dos a la derecha.
   Al entrar se ve la carga de la versión web en vez de la animación del celular. Solo aplica con html.ma-reg-pc (lo pone el
   servidor cuando el registro se abre desde una PC): en el celular el registro queda igual. */

/* Carga de la versión web */
html.ma-reg-pc .web-loader{position:fixed;inset:0;z-index:60000;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#fff;transition:opacity .3s ease,visibility 0s linear .3s}
html.ma-reg-pc .web-loader-logo{width:118px;height:auto;display:block;margin:0 0 56px;transform:translateY(-2px)}
html.ma-reg-pc .web-loader-spin{display:block;width:27px;height:27px;border-radius:50%;border:3px solid #f2f3f4;border-top-color:#362FC1;animation:maRegPcSpin .6s linear infinite;box-sizing:border-box}
html.ma-reg-pc .web-loader p{margin:12px 0 0;font-family:"Barlow",Arial,sans-serif;font-weight:500;font-size:16px;color:#333;letter-spacing:.2px}
html.ma-reg-pc body.web-ready .web-loader{opacity:0;visibility:hidden;pointer-events:none}
html.ma-reg-pc body.rpc-leaving .web-loader{opacity:1!important;visibility:visible!important;pointer-events:auto!important;transition:none!important}
/* El circulito de carga del formulario del celular no se muestra en la PC: al crear la cuenta aparece la carga web. */
html.ma-reg-pc body.auth-register .loadingPanelContainer{visibility:hidden!important}
html.ma-reg-pc body:not(.web-ready){overflow:hidden!important}
@keyframes maRegPcSpin{from{transform:rotate(0)}to{transform:rotate(360deg)}}

/* Página */
html.ma-reg-pc,html.ma-reg-pc.ma-route-register{background:#fff!important}
html.ma-reg-pc body.auth-register{display:flex!important;flex-direction:column;min-height:100vh!important;background:#fff!important;font-family:"Barlow",Arial,sans-serif;overflow:visible!important;overflow-x:clip!important}
html.ma-reg-pc body.auth-register #root{display:block!important;flex:1 0 auto;min-height:0!important;background:#fff!important}
html.ma-reg-pc .rpc-header{display:flex;align-items:center;justify-content:center;height:72px;background:#362fc1;flex:0 0 auto}
html.ma-reg-pc .rpc-header a{display:block;line-height:0}
html.ma-reg-pc .rpc-header img{height:30px;width:auto}
html.ma-reg-pc .rpc-top{box-sizing:border-box;width:100%;max-width:1288px;margin:0 auto;padding:36px 24px 24px;display:flex;align-items:baseline;justify-content:space-between;gap:24px;flex:0 0 auto}
html.ma-reg-pc .rpc-top h1{margin:0;font-family:"Barlow",Arial,sans-serif;font-size:30px;font-weight:600;color:#333;letter-spacing:-.2px}
html.ma-reg-pc .rpc-top p{margin:0;font-family:"Barlow",Arial,sans-serif;font-size:16px;color:#555}
html.ma-reg-pc .rpc-top a,html.ma-reg-pc .rpc-footer a{color:#362fc1;text-decoration:underline;font-weight:500}
html.ma-reg-pc .rpc-footer{box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:28px 24px 22px;background:#fff;border-top:1px solid #ddd;flex:0 0 auto;font-family:"Barlow",Arial,sans-serif;font-size:16px}
html.ma-reg-pc .rpc-footer a img{display:block}
html.ma-reg-pc .rpc-footer nav{display:flex;gap:18px}

/* Sin la barra del celular ni su animación de entrada */
html.ma-reg-pc body.auth-register .Register2_headerDNIContainer .Header_container,html.ma-reg-pc body.auth-register .Register2_headerDNIContainer .Header_spacer{display:none!important}
html.ma-reg-pc body.auth-register .masterContainer{max-width:1288px!important;width:100%!important;overflow:visible!important;margin:0 auto!important;padding:0 24px 64px!important;animation:none!important}
html.ma-reg-pc body.auth-register .masterContainer>div:first-child{position:relative}

/* Dos columnas: vista previa a la izquierda, formulario a la derecha */
html.ma-reg-pc body.auth-register div:has(>.Register2_headerDNIContainer){display:grid!important;grid-template-columns:700px minmax(0,1fr);column-gap:48px;align-items:start}
html.ma-reg-pc body.auth-register div:has(>.Register2_headerDNIContainer)>*:not(.Register2_headerDNIContainer):not(.Register2_container){grid-column:1/-1}
html.ma-reg-pc body.auth-register .Register2_headerDNIContainer{position:sticky!important;top:24px;max-width:none!important;width:700px!important;margin:0!important;z-index:2!important}
html.ma-reg-pc body.auth-register .PhotoDNI_stickyContainer,html.ma-reg-pc body.auth-register .PhotoDNI_stickyContainer.sticky{position:relative!important;top:auto!important;left:auto!important;right:auto!important;margin:0!important;width:100%!important;max-width:none!important;padding:28px 0!important;background:#f5f5f7!important;border:1px solid #e6e6ee;border-radius:16px;overflow:hidden!important;box-sizing:border-box}
html.ma-reg-pc body.auth-register .ma-lic-pvwrap{padding:0 37px!important}
html.ma-reg-pc body.auth-register .Register2_container,html.ma-reg-pc body.auth-register .Register2_container.Register2_container_sticky{margin:0!important;padding:0!important;max-width:none!important;width:100%!important;overflow:visible!important;background:none!important;display:block!important}

/* Formulario: campos de a dos, con la etiqueta arriba (como la versión web) */
html.ma-reg-pc body.auth-register .authForm{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:20px;align-items:start;padding:0!important;overflow:visible!important;font-family:"Barlow",Arial,sans-serif}
html.ma-reg-pc body.auth-register .authForm>*{grid-column:1/-1;min-width:0}
html.ma-reg-pc body.auth-register .authForm>.form-fieldContainer:has([name=name]),html.ma-reg-pc body.auth-register .authForm>.form-fieldContainer:has([name=surname]),
html.ma-reg-pc body.auth-register .authForm>.form-fieldContainer:has([name=dni]),html.ma-reg-pc body.auth-register .authForm>.form-fieldContainer:has([name=address]),
html.ma-reg-pc body.auth-register .authForm>.form-fieldContainer:has([name=birth]),html.ma-reg-pc body.auth-register .authForm>.form-fieldContainer:has([name=dniIssueDate]),
html.ma-reg-pc body.auth-register .authForm>.form-fieldContainer:has([name=email]),html.ma-reg-pc body.auth-register .authForm>.form-fieldContainer:has([name=ma_phone]),
html.ma-reg-pc body.auth-register .authForm>.form-fieldContainer:has([name=password]),html.ma-reg-pc body.auth-register .authForm>.form-fieldContainer:has([name=confirmPassword]),
html.ma-reg-pc body.auth-register .authForm>.registerForm_signContainer,html.ma-reg-pc body.auth-register .authForm>div:has(>.registerForm_fieldContainerPhoto){grid-column:auto}
html.ma-reg-pc body.auth-register .authForm input,html.ma-reg-pc body.auth-register .authForm select,html.ma-reg-pc body.auth-register .authForm button,html.ma-reg-pc body.auth-register .authForm textarea{font-family:"Barlow",Arial,sans-serif}
html.ma-reg-pc body.auth-register .registerForm_title{margin:0 0 22px!important;text-align:left!important;font-size:22px!important;font-weight:600!important;color:#333!important}
html.ma-reg-pc body.auth-register .form-fieldContainer{margin:0 0 20px!important}
html.ma-reg-pc body.auth-register .textFormInput-field{background:none!important;border:0!important;border-radius:0!important;padding:0!important}
html.ma-reg-pc body.auth-register .registerForm_label{display:flex!important;flex-direction:column!important;height:auto!important}
html.ma-reg-pc body.auth-register .registerForm_labelSpan,html.ma-reg-pc body.auth-register .registerForm_labelAnim>.registerForm_labelSpan{position:static!important;height:auto!important;line-height:1.25!important;transform:none!important;margin:0 0 8px!important;font-size:15px!important;font-weight:500;color:#555!important;white-space:nowrap}
html.ma-reg-pc body.auth-register .registerForm_input,html.ma-reg-pc body.auth-register .registerForm_labelAnim>.registerForm_input{height:44px!important;background:#fff!important;border:1px solid #ccc!important;border-radius:6px!important;padding:0 14px!important;font-size:16px!important;color:#333!important;transition:border-color .15s ease,box-shadow .15s ease}
html.ma-reg-pc body.auth-register .registerForm_input:focus{border-color:#362fc1!important;box-shadow:0 0 0 3px rgba(54,47,193,.14)!important;outline:none!important}
html.ma-reg-pc body.auth-register .registerForm_input.registerForm_inputInvalid{border-color:#d93025!important}
html.ma-reg-pc body.auth-register .registerForm_input.registerForm_inputValid{border-color:#2e9d4b!important}

/* Fechas */
html.ma-reg-pc body.auth-register .registerForm_field_birth{display:flex!important;flex-direction:column!important;gap:8px!important;background:none!important;border:0!important;padding:0!important}
html.ma-reg-pc body.auth-register .registerForm_birthTitle{margin:0!important}
html.ma-reg-pc body.auth-register .registerForm_birthTitle>span{font-size:15px!important;font-weight:500;color:#555!important;line-height:1.25}
html.ma-reg-pc body.auth-register .registerForm_field_birth>div:last-child{width:100%}
html.ma-reg-pc body.auth-register .registerForm_field_birth input[type=date]{box-sizing:border-box;width:100%!important;height:44px!important;background:#fff!important;border:1px solid #ccc!important;border-radius:6px!important;padding:0 12px!important;font-size:16px!important;color:#333!important}
html.ma-reg-pc body.auth-register .registerForm_field_birth input[type=date]:focus{border-color:#362fc1!important;box-shadow:0 0 0 3px rgba(54,47,193,.14)!important;outline:none!important}

/* Tipo de DNI y sexo */
html.ma-reg-pc body.auth-register .ma-dni-type-field{justify-content:flex-start!important;margin:0 0 22px!important;padding:0!important}
html.ma-reg-pc body.auth-register .ma-dni-type-title{font-size:15px!important;font-weight:500!important;color:#555!important}
html.ma-reg-pc body.auth-register .authForm>.form-fieldContainer:has([name=sex]){display:flex!important;align-items:center;gap:22px;margin:2px 0 24px!important}
html.ma-reg-pc body.auth-register .registerForm_checkboxTitle{margin:0!important;font-size:15px!important;font-weight:500;color:#555!important}
html.ma-reg-pc body.auth-register .registerForm_checkboxField{margin:0!important;cursor:pointer}
html.ma-reg-pc body.auth-register .registerForm_checkboxInput{width:17px;height:17px;margin:0 8px 0 0!important;accent-color:#362fc1;cursor:pointer}
html.ma-reg-pc body.auth-register .registerForm_checkboxLabel{font-size:15px!important;color:#333!important;cursor:pointer}

/* Firma y foto, una al lado de la otra */
html.ma-reg-pc body.auth-register .authForm>.registerForm_signContainer,html.ma-reg-pc body.auth-register .authForm>div:has(>.registerForm_fieldContainerPhoto){align-self:stretch;box-sizing:border-box;display:flex!important;flex-direction:column;align-items:center;justify-content:flex-start;margin:0 0 24px!important;padding:20px!important;background:#f5f5f7!important;border:1px solid #e6e6ee;border-radius:12px;box-shadow:none!important}
html.ma-reg-pc body.auth-register .authForm>div:has(>.registerForm_fieldContainerPhoto)::before{content:"Foto";display:block;margin:0 0 15px;color:#3730ba;font-size:16px;font-weight:600;line-height:19px}
html.ma-reg-pc body.auth-register .authForm .registerForm_fieldContainerPhoto{margin:14px 0 34px!important}
html.ma-reg-pc body.auth-register .repositionControls_title{margin-bottom:15px!important}
html.ma-reg-pc body.auth-register .registerForm_signContainer>canvas{background:#fff;cursor:crosshair}
html.ma-reg-pc body.auth-register .repositionControls_reset{margin-top:18px!important;background:#fff!important}

/* Licencia, avisos y botón */
html.ma-reg-pc body.auth-register .authForm>.ma-lic{margin:0 0 24px!important}
html.ma-reg-pc body.auth-register .authForm>.ma-priv{margin:4px 0 20px!important}
html.ma-reg-pc body.auth-register .custom-button-container{justify-content:flex-start!important;margin:4px 0 0!important;padding:0!important}
html.ma-reg-pc body.auth-register .custom-button.custom-button--bottom-warning{margin:0!important;width:auto!important;min-width:240px;padding:14px 40px!important;border-radius:999px!important;font-size:16px!important;font-weight:600!important;letter-spacing:.2px!important;box-shadow:none!important;background:#362fc1!important}
html.ma-reg-pc body.auth-register .custom-button.custom-button--bottom-warning:hover{background:#2a24a0!important;transform:none!important}
html.ma-reg-pc body.auth-register .custom-button.custom-button--bottom-warning:disabled{background:rgba(54,47,193,.5)!important}

/* Ventana angosta: la vista previa arriba y el formulario abajo */
@media (max-width:1259px){
  html.ma-reg-pc body.auth-register div:has(>.Register2_headerDNIContainer){grid-template-columns:minmax(0,700px);justify-content:center}
  html.ma-reg-pc body.auth-register .Register2_headerDNIContainer{position:relative!important;top:auto;width:100%!important;margin:0 0 32px!important}
  html.ma-reg-pc .rpc-top{max-width:748px}
}
@media (max-width:759px){
  html.ma-reg-pc body.auth-register .authForm{grid-template-columns:minmax(0,1fr)}
  html.ma-reg-pc body.auth-register .authForm>*{grid-column:1/-1!important}
  html.ma-reg-pc .rpc-top{flex-direction:column;align-items:flex-start;gap:8px}
}
