/* Mi cuenta (login/registro) con la misma forma que el acceso de las
   invitaciones: sin recuadro, sobre el fondo y centrado en los dos ejes.
   Valores de rs-course-invitations/assets/invitation.css. */

body.gce-auth-page-body .woocommerce {
  display: flex !important;
  flex-direction: column;
  min-height: 100vh;
  padding: 0 26px !important;
}

body.gce-auth-page-body .woocommerce .gce-account-top { margin: 0 -26px; }

/* El bloque del formulario queda entre márgenes automáticos: centrado vertical. */
/* Los avisos (contraseña incorrecta, etc.) van pegados al formulario. */
body.gce-auth-page-body .woocommerce .woocommerce-notices-wrapper { width: min(100%, 380px); margin: auto auto 0 !important; padding-top: 40px; }
body.gce-auth-page-body .woocommerce .woocommerce-notices-wrapper ul,
body.gce-auth-page-body .woocommerce .woocommerce-notices-wrapper > div { margin: 0 0 18px !important; padding: 11px 13px !important; border: 0 !important; border-radius: 10px; background: #fdf0ee !important; color: #9b2c1f !important; font-size: 13px; list-style: none; }
body.gce-auth-page-body .woocommerce .woocommerce-notices-wrapper :is(ul, div):focus { outline: 0 !important; box-shadow: none !important; }
body.gce-auth-page-body .woocommerce .woocommerce-notices-wrapper li { display: block !important; margin: 0 !important; padding: 0 !important; line-height: 1.5; }
body.gce-auth-page-body .woocommerce .woocommerce-notices-wrapper :is(li, strong, a) { color: #9b2c1f !important; }
body.gce-auth-page-body .woocommerce .woocommerce-notices-wrapper strong { display: inline !important; font-weight: 600; }
body.gce-auth-page-body .woocommerce .woocommerce-notices-wrapper a { display: inline !important; padding: 0 !important; background: none !important; text-decoration: underline; font-weight: 600; }
body.gce-auth-page-body .woocommerce .woocommerce-notices-wrapper li::before,
body.gce-auth-page-body .woocommerce .woocommerce-notices-wrapper ul::before { display: none !important; }
body.gce-auth-page-body .woocommerce .col2-set { margin: 0 auto !important; width: min(100%, 380px) !important; max-width: 380px !important; }
body.gce-auth-page-body .woocommerce .toggle-message { margin: 20px auto auto !important; padding-bottom: 40px; width: min(100%, 380px); }

body.gce-auth-page-body .woocommerce .u-column1.col-1,
body.gce-auth-page-body .woocommerce .u-column2.col-2 {
  max-width: 380px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.gce-auth-page-body .woocommerce .u-column1.col-1 > h2,
body.gce-auth-page-body .woocommerce .u-column2.col-2 > h2 { display: none !important; }

.gce-auth-head__eyebrow {
  margin: 0 0 13px;
  color: #68645c;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

body.gce-auth-page-body .gce-auth-head__title {
  margin: 0 0 7px;
  color: #191817;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif !important;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.2;
}

.gce-auth-head__intro { margin: 0 0 9px; color: #6a675f; font-size: 13px; }

/* Formularios en rejilla: nombre y apellidos en paralelo, «Recuérdame» y
   «¿Olvidaste la contraseña?» en la misma línea, como en la invitación. */
body.gce-auth-page-body .woocommerce form.login,
body.gce-auth-page-body .woocommerce form.register {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 14px 12px;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

/* Clearfix del tema: dentro de la rejilla ocuparía una fila vacía. */
body.gce-auth-page-body .woocommerce form.login::before,
body.gce-auth-page-body .woocommerce form.login::after,
body.gce-auth-page-body .woocommerce form.register::before,
body.gce-auth-page-body .woocommerce form.register::after,
body.gce-auth-page-body .woocommerce form.login > p.form-row::before,
body.gce-auth-page-body .woocommerce form.login > p.form-row::after { display: none !important; content: none !important; }

body.gce-auth-page-body .woocommerce form.login > *,
body.gce-auth-page-body .woocommerce form.register > * { grid-column: 1 / -1; margin: 0 !important; }
body.gce-auth-page-body .woocommerce form.register > p:has(#reg_first_name),
body.gce-auth-page-body .woocommerce form.register > p:has(#reg_last_name) { grid-column: auto; }

body.gce-auth-page-body .woocommerce form.login > p.form-row:not(.form-row-wide) { display: contents; }
body.gce-auth-page-body .woocommerce form.login .woocommerce-form-login__rememberme { grid-column: 1; order: 2; display: inline-flex; align-items: center; gap: 8px; margin: 0; color: #6a675f; font-size: 12px; font-weight: 500; }
body.gce-auth-page-body .woocommerce form.login .lost_password { grid-column: 2; order: 3; justify-self: end; align-self: center; font-size: 12px; }
body.gce-auth-page-body .woocommerce form.login .woocommerce-form-login__submit { order: 4; grid-column: 1 / -1; }
body.gce-auth-page-body .woocommerce form.login .gce-google-login-box { order: 5; }
body.gce-auth-page-body .woocommerce form.login .woocommerce-form__input-checkbox { flex: none; width: 16px; height: 16px; margin: 0 !important; vertical-align: middle; accent-color: #191817; }

/* Los campos de nombre los añade otro plugin sin la clase form-row del tema. */
body.gce-auth-page-body .woocommerce form .woocommerce-form-row label {
  display: block;
  margin: 0 0 5px;
  color: #6a675f;
  font-size: 11.5px;
  font-weight: 600;
}

body.gce-auth-page-body .woocommerce form .woocommerce-form-row label .required,
body.gce-auth-page-body .woocommerce form .woocommerce-form-row label > span[aria-hidden="true"] { display: none; }

body.gce-auth-page-body .woocommerce form .woocommerce-form-row input.input-text {
  width: 100%;
  min-height: 42px;
  border: 1px solid #d9d7d1 !important;
  border-radius: 9px;
  background: #fff;
  padding: 11px 12px;
  color: #191817;
  font-size: 13px;
}

body.gce-auth-page-body .woocommerce form .woocommerce-form-row input.input-text:focus { border-color: #191817 !important; outline: 0; }

body.gce-auth-page-body .woocommerce form wc-order-attribution-inputs { display: none; }
body.gce-auth-page-body .woocommerce form.login .woocommerce-form-login__rememberme span { line-height: 16px; }

body.gce-auth-page-body .woocommerce form .button { min-height: 42px; }

body.gce-auth-page-body .woocommerce .woocommerce-privacy-policy-text:empty { display: none; }

body.gce-auth-page-body .woocommerce .lost_password a,
body.gce-auth-page-body .woocommerce .toggle-message a { font-weight: 600; text-decoration: underline; }

/* Google: separador «o» sin líneas y texto de ayuda pequeño, como en la invitación. */
body.gce-auth-page-body .woocommerce .gce-google-login-box { margin: 4px 0 0 !important; color: #6a675f; font-size: 12px; }
body.gce-auth-page-body .woocommerce .gce-separator { display: block !important; margin: 0 0 .75rem !important; color: #6a675f; }
body.gce-auth-page-body .woocommerce .gce-separator::before,
body.gce-auth-page-body .woocommerce .gce-separator::after { display: none; }
body.gce-auth-page-body .woocommerce .gce-google-btn { min-height: 42px; border-color: #d9d7d1 !important; border-radius: 10px !important; }

/* /login/: la misma tarjeta pierde el recuadro y queda centrada. */
body.gce-auth-page-body .gce-auth-card {
  width: min(100%, 380px);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

@media (max-width: 520px) {
  body.gce-auth-page-body .woocommerce { padding: 0 20px !important; }
  body.gce-auth-page-body .woocommerce .gce-account-top { margin: 0 -20px; }
  body.gce-auth-page-body .woocommerce form.register > p:has(#reg_first_name),
  body.gce-auth-page-body .woocommerce form.register > p:has(#reg_last_name) { grid-column: 1 / -1; }
  body.gce-auth-page-body .woocommerce form .form-row input.input-text { min-height: 46px; font-size: 16px; }
  body.gce-auth-page-body .woocommerce form .button { min-height: 46px; font-size: 14px !important; }
}
