/* Okta create account — STAFFPAY-518 (500px card, 40px side gutters, spacing per design spec). */

:root {
  /* Same as Okta login (_oktaLikeCss); not main-app Rubik / Google Fonts. */
  --okta-create-font-family: proxima nova, montserrat, Arial, Helvetica, sans-serif;
  --okta-create-page-bg: #ffffff;
  --okta-create-card-bg: #ffffff;
  --okta-create-text: #222222;
  --okta-create-muted: #6b6b6b;
  --okta-create-border: #d0d0d0;
  --okta-create-step-inactive: #9e9e9e;
  --okta-create-error-bg: #fde8e8;
  --okta-create-error-text: #c62828;
  --okta-create-input-bg: #ffffff;
  --okta-create-gutter: 40px;
  --okta-create-footer-inset: 30px;
  /* Logged-in .navbar-fixed-top.in-app is 50px and outranks a single class. */
  --okta-create-nav-height: 50px;
  --okta-create-header-height: 60px;
  --okta-create-step-complete: #4caf50;
}

body.okta-create-page {
  margin: 0;
  min-height: 100vh;
  background-color: var(--okta-create-page-bg);
  font-family: var(--okta-create-font-family);
  color: var(--okta-create-text);
}

/* in-app on body is for tenant navbar selectors only; do not offset the standalone page */
body.okta-create-page.in-app {
  margin-top: 0 !important;
}

/* app.nav.inapp.css sets Rubik on in-app nav; create-account matches login typography instead */
body.okta-create-page.in-app .navbar-fixed-top.in-app ul li a.nav-link {
  font-family: var(--okta-create-font-family);
}

.okta-create-card {
  width: 500px;
  max-width: calc(100% - 32px);
  margin: 100px auto var(--okta-create-gutter);
  background: var(--okta-create-card-bg);
  border-radius: 4px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

/* Header matches the 50px logged-in bar; logo left; app name + muted " | By IRIS" right-aligned */
.okta-create-card .okta-create-brand-header.navbar-fixed-top.in-app {
  position: static;
  height: var(--okta-create-nav-height);
  margin-bottom: 0;
  border-radius: 0;
  min-height: 0;
}

.okta-create-brand-header {
  box-sizing: border-box;
  height: var(--okta-create-nav-height);
  background-color: var(--main-color);
  color: #ffffff;
}

/* top-menu matches logged-in nav markup for tenant CssFile accent line */
.okta-create-brand-header .top-menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  height: 100%;
  margin: 0;
  padding: 0 var(--okta-create-gutter);
}

.okta-create-brand-logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex: 0 0 auto;
  height: var(--okta-create-nav-height);
  min-width: var(--okta-create-nav-height);
}

.okta-create-brand-logo img {
  display: block;
  max-height: 34px;
  width: auto;
}

.okta-create-brand-title {
  margin: 0;
  flex: 1 1 auto;
  text-align: right;
  font-family: var(--okta-create-font-family);
  font-size: 14px;
  font-weight: 400;
  line-height: var(--okta-create-nav-height);
  white-space: nowrap;
  color: #ffffff;
}

.okta-create-brand-title-muted {
  font-weight: 300;
  color: rgba(255, 255, 255, 0.55);
}

/* Stepper band: 60px tall, 40px horizontal gutters */
.okta-create-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  height: var(--okta-create-header-height);
  padding: 0 var(--okta-create-gutter);
  margin-top:10px;
}

.okta-create-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto;
}

.okta-create-step-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.okta-create-step-active .okta-create-step-circle {
  background: var(--btn-success);
  color: #ffffff;
}

.okta-create-step-inactive .okta-create-step-circle {
  background: var(--okta-create-card-bg);
  color: var(--okta-create-step-inactive);
  border: 2px solid var(--okta-create-step-inactive);
}

.okta-create-step-label {
  margin-top: 4px;
  font-size: 12px;
  text-align: center;
  line-height: 1.2;
}

.okta-create-step-active .okta-create-step-label {
  color: var(--btn-success);
  font-weight: 600;
}

.okta-create-step-inactive .okta-create-step-label {
  color: var(--okta-create-step-inactive);
}

.okta-create-stepper-line {
  flex: 1 1 auto;
  height: 2px;
  margin: 0 12px;
  align-self: flex-start;
  margin-top: 20px;
  background: var(--okta-create-border);
}

.okta-create-body {
  padding: 20px var(--okta-create-gutter) 0;
}

.okta-create-heading {
  margin: 0 0 20px;
  font-size: 22px;
  font-weight: 700;
  color: var(--okta-create-text);
}

.okta-create-alert {
  margin: 0 0 20px;
  padding: 10px 12px;
  border-radius: 2px;
  font-size: 13px;
}

.okta-create-alert.alert-danger {
  background: var(--okta-create-error-bg);
  color: var(--okta-create-error-text);
  border-color: transparent;
}

.okta-create-alert ul {
  margin: 0;
  padding-left: 18px;
}

/* Client and server validation (matches design error panel + in-app field errors) */
.okta-create-body .validation-summary-valid {
  display: none;
}

.okta-create-body .validation-summary-errors {
  font-style: normal;
}

.okta-create-body .field-validation-error {
  display: block;
  margin-top: 6px;
  color: var(--okta-create-error-text);
  font-size: 13px;
  font-style: normal;
}

.okta-create-field .input-validation-error {
  border-color: #b94a48 !important;
  background-color: #f2dede;
}

.okta-create-field {
  margin-bottom: 20px;
}

.okta-create-field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--okta-create-muted);
}

.okta-create-field .form-control,
.okta-create-field select.form-control {
  border: 1px solid var(--okta-create-border);
  border-radius: 3px;
  height: 40px;
  font-size: 14px;
  background: var(--okta-create-input-bg);
  color: var(--okta-create-text);
  box-shadow: none;
}

.okta-create-field .easy-autocomplete {
  width: 100%;
}

.okta-create-field .easy-autocomplete input.form-control {
  width: 100%;
}

.okta-create-field .form-control:focus {
  border-color: var(--main-color);
  box-shadow: 0 0 0 2px var(--main-color-opacity-5);
}

.okta-create-row {
  display: flex;
  gap: 16px;
}

.okta-create-row .okta-create-field {
  flex: 1;
  min-width: 0;
  margin-bottom: 20px;
}

.okta-create-turnstile {
  width: 100%;
  margin: 0 0 30px;
  box-sizing: border-box;
}

.okta-create-turnstile .cf-turnstile {
  display: block;
  width: 100%;
  max-width: 100%;
}

.okta-create-submit.btn-success {
  height: 48px;
  margin: 30px 0;
  border-radius: 3px;
  font-size: 15px;
  font-weight: 600;
}

.okta-create-submit.btn-success:not(:disabled):hover,
.okta-create-submit.btn-success:not(:disabled):focus {
  background: var(--main-color-darker) !important;
  border-color: var(--main-color-darker) !important;
  color: #ffffff;
  outline: none;
}

.okta-create-signin {
  margin: 30px calc(var(--okta-create-footer-inset) - var(--okta-create-gutter)) 0;
  padding: 30px 0;
  border-top: 1px solid var(--okta-create-border);
  text-align: center;
}

.okta-create-signin a {
  color: var(--btn-success);
  font-size: 14px;
  text-decoration: none;
}

.okta-create-signin a:hover,
.okta-create-signin a:focus {
  text-decoration: underline;
}

.okta-create-step-complete .okta-create-step-circle {
  background: var(--okta-create-step-complete);
  color: #ffffff;
  border: none;
}

.okta-create-step-complete .okta-create-step-label {
  color: var(--okta-create-step-complete);
  font-weight: 600;
}

.okta-create-consent {
  margin-bottom: 16px;
}

.okta-create-consent .checkbox-x-inline {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  clear: none;
}

.okta-create-consent .checkbox-x-inline .cbx-container {
  float: none;
  flex: 0 0 auto;
  margin-top: 2px;
}

.okta-create-consent .checkbox-x-info {
  position: relative;
  display: block;
  top: 4px;
  height: auto;
  padding-left: 0;
  line-height: 1.4;
  color: var(--okta-create-muted);
  font-weight: 400;
}

.okta-create-footnote {
  font-size: 12px;
  margin-top: 16px;
}

@media (max-width: 540px) {
  :root {
    --okta-create-gutter: 20px;
  }

  .okta-create-row {
    flex-direction: column;
    gap: 0;
  }

  .okta-create-stepper-line {
    margin-top: 11px;
  }
}
