/* Modern Register page. Loaded only on the Register page, only while "Modern register
   page" is enabled in the module. Colours: --wa-primary / --wa-accent, set from the
   module settings (same as the modern Login page). Scoped to #account-register. */

#account-register #content {
  float: none;
  width: 100%;
  max-width: 760px;
  margin: 0 auto 40px;
}

#account-register #column-left,
#account-register #column-right,
#account-register aside.content-aside {
  display: none;
}

#account-register #content > h1 {
  margin: 8px 0 6px;
  text-align: center;
  font-size: 28px;
  font-weight: 600;
  color: #202020;
}

#account-register #content > p {
  margin: 0 0 22px;
  text-align: center;
  color: #6b7280;
}

#account-register #content > p a { color: var(--wa-primary, #1450b0); font-weight: 600; }

/* one card per section */
#account-register form.form-horizontal fieldset {
  position: relative;
  min-width: 0;
  margin: 0 0 22px;
  padding: 30px 30px 12px;
  background: #fff;
  border: 1px solid #e3e8f1;
  border-radius: 12px;
  box-shadow: inset 0 5px 0 var(--wa-primary, #1450b0), 0 8px 28px rgba(0, 0, 0, .07);
}

#account-register form.form-horizontal legend {
  display: block;
  float: left;
  width: 100%;
  margin: 0 0 20px;
  padding: 0 0 12px;
  font-size: 19px;
  font-weight: 600;
  color: #202020;
  border-bottom: 2px solid var(--wa-accent, #fcd000);
}

#account-register form.form-horizontal legend + * { clear: both; }

/* labels above the fields instead of a narrow left column */
#account-register form.form-horizontal .form-group {
  margin: 0 0 18px;
}

#account-register form.form-horizontal .form-group > [class*="col-sm-"] {
  float: none;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}

#account-register form.form-horizontal .control-label {
  display: block;
  padding-top: 0;
  margin-bottom: 6px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: #333;
}

#account-register form.form-horizontal .form-control {
  height: 46px;
  padding: 10px 14px;
  font-size: 15px;
  color: #202020;
  background: #f8fafc;
  border: 1px solid #d6dde9;
  border-radius: 8px;
  box-shadow: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}

#account-register form.form-horizontal textarea.form-control { height: auto; }

#account-register form.form-horizontal .form-control:focus {
  background: #fff;
  border-color: var(--wa-primary, #1450b0);
  box-shadow: 0 0 0 3px var(--wa-primary-soft, rgba(20, 80, 176, .15));
  outline: 0;
}

#account-register form.form-horizontal .has-error .form-control,
#account-register form.form-horizontal .wa-missing { border-color: #d9534f; }

#account-register form.form-horizontal .text-danger {
  margin-top: 5px;
  font-size: 12.5px;
}

#account-register form.form-horizontal .radio label,
#account-register form.form-horizontal .checkbox label { font-weight: 500; }

/* upload / small buttons: text and icon colours are set explicitly (some themes make
   .btn-default text white, which is invisible on a light button) */
#account-register form.form-horizontal .btn-default {
  height: 42px;
  padding: 0 16px;
  color: #333 !important;
  font-weight: 600;
  background: #fff;
  border: 1px solid #cfd6e4;
  border-radius: 8px;
  text-shadow: none;
  box-shadow: none;
}

#account-register form.form-horizontal .btn-default:hover,
#account-register form.form-horizontal .btn-default:focus {
  color: var(--wa-primary, #1450b0) !important;
  background: var(--wa-primary-soft, rgba(20, 80, 176, .1));
  border-color: var(--wa-primary, #1450b0);
}

/* the WhatsApp verification card and the step bar share the same radius */
#wa-otp-box { border-radius: 12px; margin-bottom: 22px; }

/* agree + continue */
#account-register form.form-horizontal .buttons {
  margin: 0 0 10px;
  padding: 18px 22px;
  background: #fff;
  border: 1px solid #e3e8f1;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .05);
}

#account-register form.form-horizontal .buttons .pull-right {
  float: none !important;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px 14px;
}

#account-register form.form-horizontal .buttons input[type="checkbox"] { margin: 0 0 0 4px; }

#account-register form.form-horizontal .buttons .btn-primary,
#wa-addr-submit {
  min-width: 190px;
  height: 48px;
  padding: 0 30px;
  font-size: 15px;
  font-weight: 600;
  color: var(--wa-primary-ink, #fff);
  background: var(--wa-primary, #1450b0);
  border: 0;
  border-radius: 8px;
  box-shadow: 0 4px 14px var(--wa-primary-shadow, rgba(20, 80, 176, .25));
  transition: background .15s, transform .05s;
}

#account-register form.form-horizontal .buttons .btn-primary:hover,
#wa-addr-submit:hover { background: var(--wa-primary-dark, #0f3d87); }

#account-register form.form-horizontal .buttons .btn-primary:active { transform: translateY(1px); }

@media (max-width: 767px) {
  #account-register form.form-horizontal fieldset { padding: 20px 16px 6px; }
  #account-register #content > h1 { font-size: 23px; }
  #account-register form.form-horizontal .buttons .pull-right { justify-content: stretch; }
  #account-register form.form-horizontal .buttons .btn-primary { width: 100%; }
}
