/* Log in (wp-login.php → /login/) and Create account (/register/, register.php).
   Markup: inc/auth-helpers.php, assets/app/js/login.js, register.php, CF7 "Custom Registration CF7". */

body.login,
.page-template-register {
  background: #f4f7ff; }

.auth-page {
  --au-navy: #031c78;
  --au-blue: #3760f3;
  --au-blue-dark: #042dc0;
  --au-panel: #1b3aa8;
  --au-yellow: #ffde59;
  --au-border: #e3e8fb;
  --au-input: #dfe5fb;
  --au-tabs: #eef1fb;
  --au-text: #3c4257;
  --au-muted: #5b6480;
  --au-on-dark: #cdd7fc;
  background: #f4f7ff;
  color: #1a1d1f;
  font-family: "Montserrat", Arial, Helvetica, sans-serif; }

.auth-layout {
  display: flex;
  flex-wrap: wrap-reverse;
  align-items: stretch;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 64px; }

/* Benefits panel */
.auth-aside {
  flex: 1 1 380px;
  min-width: 0;
  display: flex; }

.auth-benefits {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  padding: 40px;
  border-radius: 24px;
  background: var(--au-navy); }

.auth-page .auth-benefits__badge {
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--au-panel);
  color: var(--au-yellow);
  font-size: 12px;
  font-weight: 700; }

.auth-page .auth-benefits__title {
  margin: 0;
  font-size: 32px;
  line-height: 1.2;
  font-weight: 800;
  color: #fff; }

.auth-benefits__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none; }
  .auth-benefits__list li {
    display: flex;
    gap: 12px;
    margin: 0; }

.auth-page .auth-benefits__icon {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--au-yellow); }
  .auth-benefits__icon svg {
    display: block; }

.auth-benefits__text {
  display: flex;
  flex-direction: column;
  gap: 2px; }

.auth-page .auth-benefits__name {
  font-size: 15px;
  font-weight: 700;
  color: #fff; }

.auth-page .auth-benefits__desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--au-on-dark); }

/* Card */
.auth-card {
  flex: 1 1 440px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 32px;
  border-radius: 24px;
  border: 1px solid var(--au-border);
  background: #fff;
  box-shadow: 0 16px 40px rgba(3, 28, 120, 0.08); }

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: var(--au-tabs); }

.auth-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 10px;
  color: var(--au-muted);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none; }
  .auth-tab:hover {
    color: var(--au-navy); }
  .auth-tab.is-active {
    background: #fff;
    color: var(--au-navy);
    box-shadow: 0 1px 3px rgba(3, 28, 120, 0.08); }

.auth-head {
  display: flex;
  flex-direction: column;
  gap: 6px; }

.auth-page .auth-title {
  margin: 0;
  padding: 0;
  text-align: left;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--au-navy); }

.auth-page .auth-lead {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--au-text); }

.auth-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  border: 1.5px solid var(--au-input);
  border-radius: 12px;
  background: #fff;
  color: var(--au-navy);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color .2s ease; }
  .auth-google:hover {
    border-color: var(--au-blue);
    color: var(--au-navy); }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--au-muted); }
  .auth-divider::before, .auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--au-border); }
  .auth-page .auth-divider span {
    color: var(--au-muted); }

.auth-page .auth-switch,
.auth-page .auth-terms {
  margin: 0;
  text-align: center;
  font-size: 14px;
  line-height: 1.55;
  color: var(--au-text); }
  .auth-page .auth-terms {
    font-size: 13px;
    color: var(--au-muted); }
  .auth-switch a, .auth-terms a {
    color: var(--au-blue);
    font-weight: 700;
    text-decoration: none; }
    .auth-terms a {
      font-weight: 600;
      text-decoration: underline; }

.auth-page a:focus-visible, .auth-page button:focus-visible, .auth-page input:focus-visible {
  outline: 2px solid var(--au-blue);
  outline-offset: 2px; }

/* ---------- Fields: wp-login.php form and the CF7 registration form ---------- */
.login .auth-card #login {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: auto;
  margin: 0;
  padding: 0;
  text-align: left; }

.login .auth-card #login h1.wp-login-logo,
.login .auth-card #nsl-custom-login-form-main,
.login .auth-card .nsl-container {
  display: none; }

.login .auth-card form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  box-shadow: none;
  overflow: visible; }

.login .auth-card form p,
.login .auth-card .user-pass-wrap {
  margin: 0; }

.login .auth-card label,
.auth-form label,
.auth-form .auth-field > span:first-child {
  display: block;
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--au-navy); }

.login .auth-card form .input,
.login .auth-card input[type="text"],
.login .auth-card input[type="password"],
.login .auth-card input[type="email"],
.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
  width: 100%;
  min-height: 52px;
  margin: 0;
  padding: 0 14px;
  border: 1.5px solid var(--au-input);
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.3;
  color: #1a1d1f; }
  .login .auth-card form .input:focus,
  .auth-form input:focus {
    border-color: var(--au-blue);
    box-shadow: none;
    outline: none; }

/* Password with show / hide button */
.login .auth-card .wp-pwd,
.auth-form .wpcf7-form-control-wrap:has(.wpcf7-password) {
  position: relative;
  display: block; }

.login .auth-card .wp-pwd input,
.auth-form .wpcf7-password {
  padding-right: 52px; }

.login .auth-card .wp-hide-pw {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 44px;
  height: 44px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
  color: var(--au-blue);
  cursor: pointer; }
  .login .auth-card .wp-hide-pw:hover {
    background: #f4f7ff;
    color: var(--au-blue-dark); }
  .login .auth-card .wp-hide-pw .dashicons {
    width: 20px;
    height: 20px;
    font-size: 20px;
    line-height: 1;
    vertical-align: middle; }
  /* A plugin stylesheet paints .dashicons-visibility white. */
  .auth-page .dashicons::before {
    color: inherit; }

/* Show / hide toggle on the CF7 password fields comes from a CF7 password add-on (Font Awesome icon, inline styles). */
.auth-form [id^="buttonEye-"] {
  position: absolute !important;
  top: 16px; /* stays on the input when a validation tip appears below it */
  right: 16px;
  margin: 0 !important;
  width: 22px;
  height: 20px;
  font-size: 17px;
  line-height: 20px;
  text-align: center;
  color: var(--au-blue);
  cursor: pointer; }
  .auth-form [id^="buttonEye-"]:hover {
    color: var(--au-blue-dark); }

.auth-forgot {
  display: block;
  margin-top: 6px;
  padding: 6px 0;
  text-align: right;
  font-size: 14px;
  font-weight: 600;
  color: var(--au-blue);
  text-decoration: none; }

/* Submit */
.login .auth-card .submit {
  padding: 0; }

.login .auth-card #wp-submit,
.login .auth-card .button-primary,
.auth-form .wpcf7-submit {
  float: none;
  width: 100%;
  height: auto;
  min-height: 54px;
  margin: 0;
  padding: 0 20px;
  border: none;
  border-radius: 12px;
  background: var(--au-blue);
  box-shadow: none;
  text-shadow: none;
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color .2s ease; }
  .login .auth-card #wp-submit:hover,
  .auth-form .wpcf7-submit:hover {
    background: var(--au-blue-dark); }
  .login .auth-card #wp-submit:disabled {
    opacity: .7; }

/* WordPress notices on the login screen */
.login .auth-card #login_error,
.login .auth-card .message,
.login .auth-card .success,
.login .auth-card .notice {
  margin: 0 0 4px;
  padding: 12px 14px;
  border: none;
  border-radius: 12px;
  box-shadow: none;
  font-size: 14px;
  line-height: 1.5; }
  .login .auth-card #login_error,
  .login .auth-card .notice-error {
    background: #fdecea;
    color: #8a1f17; }
  .login .auth-card .message,
  .login .auth-card .success,
  .login .auth-card .notice-info {
    background: #eef1fb;
    color: var(--au-navy); }
  .login .auth-card #login_error a,
  .login .auth-card .message a {
    color: inherit;
    font-weight: 700; }

/* Default "Please enter your username or email address…" notice; the lead above the form says it. */
.login-action-lostpassword .auth-card .notice-info,
.login-action-lostpassword .auth-card p.message {
  display: none; }

.login .auth-card .reset-pass-submit,
.login .auth-card .pw-weak {
  margin: 0; }

.login .auth-card .indicator-hint,
.login .auth-card .description {
  font-size: 13px;
  line-height: 1.5;
  color: var(--au-muted); }

#pc-login-loader[hidden] {
  display: none; }

.auth-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(244, 247, 255, 0.85); }

.auth-loader__box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: #031c78;
  font: 600 16px/1.4 "Montserrat", Arial, sans-serif; }

.auth-loader__spinner {
  width: 44px;
  height: 44px;
  border: 4px solid #e9edff;
  border-top-color: #3760f3;
  border-radius: 50%;
  animation: auth-spin .8s linear infinite; }

@keyframes auth-spin {
  to {
    transform: rotate(360deg); } }

/* ---------- CF7 registration form ---------- */
.auth-form .wpcf7 form {
  display: flex;
  flex-direction: column;
  gap: 16px; }

.auth-form .wpcf7 form > p,
.auth-form .auth-field {
  margin: 0; }

.auth-form .wpcf7 br {
  display: none; }

.auth-form .wpcf7-form-control-wrap {
  display: block; }

.auth-page .auth-form .auth-hint {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--au-muted); }

.auth-form .wpcf7-not-valid {
  border-color: #d14c3f !important; }

.auth-form .wpcf7-not-valid-tip {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #a3322b; }

.auth-form .wpcf7-spinner {
  display: none; }
  .auth-form .wpcf7 form.submitting .wpcf7-spinner {
    display: block;
    margin: 10px auto 0; }

.auth-form .wpcf7 form .wpcf7-response-output {
  margin: 0;
  padding: 12px 14px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  background: #fdecea;
  color: #8a1f17; }
  .auth-form .wpcf7 form.sent .wpcf7-response-output {
    background: #e8f6ee;
    color: #135c33; }

/* Mobile */
@media (max-width: 600px) {
  .auth-layout {
    gap: 16px;
    padding: 20px 16px 40px; }
  .auth-card {
    padding: 22px 18px;
    border-radius: 20px; }
  .auth-page .auth-title {
    font-size: 24px; }
  .auth-benefits {
    padding: 26px 22px;
    border-radius: 20px; }
  .auth-page .auth-benefits__title {
    font-size: 24px; } }
