/* TradingWaves Journal P1-FUNNEL-1 minimum authentication presentation. */
body.twj-auth-page {
  min-width: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 8%, rgba(55, 167, 216, .12), transparent 34rem),
    radial-gradient(circle at 88% 18%, rgba(8, 199, 111, .10), transparent 30rem),
    var(--tw-bg, #f5f8fc) !important;
}

.twj-auth-page .container.theme-bootstrap {
  width: 100%;
  max-width: 1180px;
}

.twj-auth-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 620px;
  margin: 0 auto 22px;
  color: var(--tw-heading, #061a3a);
}

.twj-auth-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--tw-primary, #08c76f), #07955a);
  box-shadow: 0 8px 20px rgba(8, 199, 111, .22);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
}

.twj-auth-brand-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.twj-auth-page #login_splash,
.twj-auth-page #signup_splash {
  display: none !important;
}

.twj-auth-signin #login_splash + [class*="col-"],
.twj-auth-signup #signup_splash + [class*="col-"] {
  float: none;
  width: 100%;
  max-width: 560px;
  margin-right: auto;
  margin-left: auto;
}

.twj-auth-page .panel {
  border-top: 4px solid var(--tw-primary, #08c76f) !important;
  border-radius: 18px !important;
  box-shadow: 0 18px 50px rgba(15, 23, 42, .10) !important;
  overflow: hidden;
  transform: none !important;
}

.twj-auth-page .panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 24px !important;
}

.twj-auth-page .panel-title,
.twj-auth-page .page-header h1 {
  margin: 0;
  color: var(--tw-heading, #061a3a) !important;
  font-size: 26px !important;
  font-weight: 800 !important;
  line-height: 1.22;
  letter-spacing: -.025em;
}

.twj-auth-page .panel-body {
  padding: 26px 28px 28px !important;
}

.twj-auth-page .panel-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--tw-border, #d9e6f5);
  background: var(--tw-surface-2, #f8fbff);
  color: var(--tw-muted, #617089);
}

.twj-auth-page .form-group {
  margin-bottom: 19px;
}

.twj-auth-page .control-label {
  display: inline-block;
  margin-bottom: 7px;
  color: var(--tw-heading, #061a3a);
  font-size: 13px;
  font-weight: 750;
}

body.twj-auth-page .form-control {
  width: 100%;
  min-height: 46px !important;
  padding: 10px 13px;
  font-size: 16px;
}

.twj-auth-page .btn {
  min-height: 44px;
  padding: 10px 18px !important;
}

.twj-auth-page .btn:focus,
.twj-auth-page .btn:focus-visible,
.twj-auth-page a:focus,
.twj-auth-page a:focus-visible,
.twj-auth-page input:focus,
.twj-auth-page input:focus-visible {
  outline: 3px solid rgba(55, 167, 216, .42) !important;
  outline-offset: 2px;
}

.twj-auth-page .help-block {
  margin-top: 8px;
  color: var(--tw-muted, #617089);
}

.twj-auth-page .alert {
  max-width: 620px;
  margin-right: auto;
  margin-left: auto;
  border-radius: 12px;
  line-height: 1.5;
}

.twj-auth-verification .container.theme-bootstrap > .page-header,
.twj-auth-reset .container.theme-bootstrap > .page-header,
.twj-auth-verification .container.theme-bootstrap > p,
.twj-auth-verification .container.theme-bootstrap > form,
.twj-auth-verification .container.theme-bootstrap > .btn {
  width: 100%;
  max-width: 560px;
  margin-right: auto;
  margin-left: auto;
}

.twj-auth-verification .container.theme-bootstrap > .page-header,
.twj-auth-reset .container.theme-bootstrap > .page-header {
  border-bottom: 0 !important;
  text-align: center;
}

.twj-auth-verification .container.theme-bootstrap > form,
.twj-auth-reset .container.theme-bootstrap > .row > [class*="col-"] > form {
  padding: 26px 28px 28px;
  border: 1px solid var(--tw-border, #d9e6f5);
  border-top: 4px solid var(--tw-primary, #08c76f);
  border-radius: 18px;
  background: var(--tw-surface, #fff);
  box-shadow: 0 18px 50px rgba(15, 23, 42, .10);
}

.twj-auth-reset .container.theme-bootstrap > .row > [class*="col-"] {
  float: none;
  width: 100%;
  max-width: 560px;
  margin-right: auto;
  margin-left: auto;
}

.twj-auth-thankyou .panel-body {
  color: var(--tw-text, #071f45);
}

.twj-auth-thankyou .panel-body > img {
  width: 160px;
  max-width: 45%;
  border-radius: 16px;
}

.twj-auth-thankyou .panel-body > .btn + .btn {
  margin-left: 8px;
}

/*
 * Auth pages reserve 70px below the fixed legacy navigation in header.php.
 * The application shell's 76px navbar-header minimum otherwise extends the
 * fixed bar 7px into the auth brand even when the navigation stays on one row.
 * A 69px header box plus the navbar's 1px border matches that reserved edge.
 */
body.twj-auth-page .navbar-fixed-top .navbar-header {
  min-height: 69px !important;
}

@media (max-width: 767px) {
  /*
   * The application shell also constrains .navbar-header to 260px on mobile.
   * Restore the available row width so the title and toggle remain in the
   * same row instead of expanding the fixed navigation to 91px.
   */
  body.twj-auth-page .navbar-fixed-top .navbar-header {
    width: 100% !important;
  }

  .twj-auth-page .container.theme-bootstrap {
    padding-right: 15px;
    padding-left: 15px;
  }

  .twj-auth-brand {
    margin-bottom: 16px;
  }

  .twj-auth-page .panel-heading {
    align-items: flex-start;
    padding: 18px 20px !important;
  }

  .twj-auth-page .panel-title,
  .twj-auth-page .page-header h1 {
    font-size: 23px !important;
  }

  .twj-auth-page .panel-body,
  .twj-auth-verification .container.theme-bootstrap > form,
  .twj-auth-reset .container.theme-bootstrap > .row > [class*="col-"] > form {
    padding: 21px 20px 23px !important;
  }

  .twj-auth-page .btn-lg,
  .twj-auth-verification .container.theme-bootstrap > form .btn,
  .twj-auth-reset .container.theme-bootstrap > .row > [class*="col-"] > form .btn,
  .twj-auth-thankyou .panel-body > .btn {
    display: block;
    width: 100%;
    margin-right: 0;
    margin-left: 0;
  }

  .twj-auth-thankyou .panel-body > .btn + .btn {
    margin-top: 10px;
    margin-left: 0;
  }
}

@media (max-width: 359px) {
  .twj-auth-brand-mark {
    width: 38px;
    height: 38px;
  }

  .twj-auth-brand-name {
    font-size: 16px;
  }

  .twj-auth-page .panel-heading,
  .twj-auth-page .panel-body,
  .twj-auth-verification .container.theme-bootstrap > form,
  .twj-auth-reset .container.theme-bootstrap > .row > [class*="col-"] > form {
    padding-right: 16px !important;
    padding-left: 16px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .twj-auth-page *,
  .twj-auth-page *::before,
  .twj-auth-page *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
