:root {
  --okta-teal: #1b6875;
  --okta-text: #5a5a5a;
  --okta-line: #e1e1e1;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--okta-text);
  background: url("../assets/OKTA_BKG.png") center center / cover fixed no-repeat;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
  pointer-events: none;
}

.flow-root {
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.scene {
  display: none;
  min-height: 100vh;
}

.scene.is-visible {
  display: block;
}

/* Email */
.email-page {
  max-width: 1024px;
  margin: 0 auto;
  background: rgba(244, 244, 244, 0.88);
  min-height: 100vh;
  padding: 0 1.25rem 2rem;
  box-shadow: 0 18px 48px rgba(13, 34, 42, 0.12);
}

.email-header {
  padding-top: 1rem;
}

.email-header h1 {
  margin: 0;
  font-size: 2.1rem;
  font-weight: 500;
  color: #3f3f3f;
}

.email-meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.2rem;
  border-bottom: 1px solid #d8d8d8;
  padding-bottom: 0.9rem;
}

.email-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ba2f34;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
}

.email-from,
.email-to {
  margin: 0;
  line-height: 1.35;
}

.email-from {
  color: #4b4b4b;
  font-weight: 700;
}

.email-to {
  color: #6a6a6a;
}

.email-date {
  margin: 0 0 0 auto;
  color: #777;
  font-size: 0.9rem;
}

.email-body {
  max-width: 620px;
  margin-top: 2.7rem;
  padding: 0.6rem 0 0 0.8rem;
}

.email-logo {
  width: 245px;
  max-width: 100%;
  margin-bottom: 2.8rem;
}

.email-body p {
  font-size: 1.05rem;
  line-height: 1.44;
  color: #4e4e4e;
  margin: 0 0 1.7rem;
}

.email-note {
  margin-top: 1rem;
  color: #8d8d8d;
  font-size: 0.95rem;
}

.cta-btn {
  border: 0;
  background: var(--okta-teal);
  color: #fff;
  font-weight: 700;
  font-size: 1.03rem;
  cursor: pointer;
  border-radius: 5px;
  padding: 0.82rem 1.1rem;
  margin-top: 0.7rem;
  margin-bottom: 0.85rem;
}

.cta-btn:focus-visible,
.okta-link-btn:focus-visible,
.text-btn:focus-visible,
.secondary-link:focus-visible {
  outline: 2px solid #123f8f;
  outline-offset: 2px;
}

/* OKTA modal flow */
.okta-scene {
  position: relative;
}

.okta-bg {
  position: fixed;
  inset: 0;
  background: url("../assets/OKTA_BKG.png") center center / cover no-repeat;
}

.okta-card-wrap {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.okta-card {
  width: 440px;
  max-width: 100%;
  background: #fff;
  border: 1px solid #d3d3d3;
}

.okta-card-header {
  border-bottom: 1px solid var(--okta-line);
  text-align: center;
  padding: 1.3rem 1rem 3rem;
}

.okta-logo {
  width: 215px;
  max-width: 100%;
}

.okta-body {
  padding: 0.75rem 2rem 1rem;
  text-align: center;
}

/* Keep modal content in one consistent reading column across all steps. */
.okta-body .okta-title,
.okta-body .okta-email,
.okta-body .okta-help,
.okta-body .okta-subtitle,
.okta-body .method-list,
.okta-body .requirements,
.okta-body .okta-field-label,
.okta-body .okta-input,
.okta-body .okta-select,
.okta-body .okta-input-row,
.okta-body .okta-radio-group,
.okta-body .password-field-wrap,
.okta-body .code-hint,
.okta-body .action-btn,
.okta-body .secondary-link {
  width: 100%;
  max-width: 290px;
  margin-left: auto;
  margin-right: auto;
}

.okta-icon {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 2px solid #b7c7d4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #3597d0;
  font-size: 2rem;
  font-weight: 700;
  margin-top: -46px;
  background: #edf7fe;
}

.okta-icon-phone {
  color: #5f6772;
}

.okta-icon-phone svg {
  width: 42px;
  height: 42px;
  display: block;
}

.okta-icon-lock {
  color: #5f6772;
}

.okta-icon-lock svg {
  width: 42px;
  height: 42px;
  display: block;
}

.okta-title {
  margin: 1.15rem 0 0.45rem;
  font-size: 1.02rem;
  color: #5d5d5d;
  font-weight: 700;
  line-height: 1.25;
}

.okta-email {
  margin: 0;
  color: #8e8e8e;
  font-size: 0.86rem;
}

.okta-help {
  margin: 1.45rem auto 0;
  max-width: 290px;
  color: #7f7f7f;
  font-size: 0.9rem;
  line-height: 1.35;
}

.okta-subtitle {
  text-align: left;
  margin: 1.55rem 0 1rem;
  color: #636363;
  font-size: 0.83rem;
  font-weight: 700;
}

.okta-methods-screen .okta-title {
  margin-top: 1.15rem;
}

.okta-methods-screen {
  padding-left: 3.15rem;
  padding-right: 3.15rem;
}

.okta-methods-screen .okta-email {
  margin-top: 0.45rem;
}

.okta-methods-screen .okta-help {
  margin-top: 1.7rem;
  margin-bottom: 0.6rem;
}

.okta-methods-screen .okta-subtitle {
  margin-top: 1.6rem;
  margin-bottom: 1.05rem;
}

.okta-methods-screen .method-item {
  margin-bottom: 1.55rem;
}

.okta-methods-screen .secondary-link {
  margin-top: 1.7rem;
}

.method-list {
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.method-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 0.68rem;
  align-items: start;
  margin-bottom: 1rem;
}

.method-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #edf7fe;
  border: 1px solid #d7e5ef;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2f99d0;
  font-size: 1.3rem;
}

.method-icon-phone {
  color: #5f6772;
}

.method-icon-phone svg {
  width: 21px;
  height: 21px;
  display: block;
}

.method-icon-lock {
  color: #5f6772;
}

.method-icon-lock svg {
  width: 21px;
  height: 21px;
  display: block;
}

.method-icon-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.method-content h4 {
  margin: 0;
  color: #666;
  font-size: 0.88rem;
  line-height: 1.2;
}

.method-content p {
  margin: 0.2rem 0 0.48rem;
  color: #7d7d7d;
  font-size: 0.85rem;
  line-height: 1.3;
}

.okta-link-btn {
  border: 1px solid #cbcbcb;
  background: #fff;
  color: #6a6a6a;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 0.14rem 0.55rem;
  cursor: pointer;
  border-radius: 5px;
}

.okta-field-label {
  display: block;
  text-align: left;
  margin-top: 1.15rem;
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
  color: #4f4f4f;
  font-weight: 700;
}

.okta-input,
.okta-select {
  width: 100%;
  border: 2px solid #dbdbdb;
  border-radius: 2px;
  min-height: 44px;
  font-size: 1rem;
  padding: 0.45rem 0.6rem;
}

.password-field-wrap {
  position: relative;
}

.password-field-wrap .okta-input {
  padding-right: 2.2rem;
}

.password-toggle {
  position: absolute;
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #8a8a8a;
  cursor: pointer;
  padding: 0.1rem 0.2rem;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.password-eye {
  position: relative;
  width: 15px;
  height: 9px;
  border: 2px solid #8a8a8a;
  border-radius: 12px / 8px;
}

.password-eye-pupil {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #8a8a8a;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.okta-input-row {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 0.35rem;
}

.okta-radio-group {
  text-align: left;
  margin-top: 1.2rem;
  margin-bottom: 0.75rem;
}

.okta-radio {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
  font-size: 1.05rem;
}

.okta-radio input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: #137f8b;
}

.action-btn {
  width: 100%;
  margin-top: 1.7rem;
  padding: 0.88rem;
}

.secondary-link {
  display: block;
  margin-top: 1.2rem;
  color: #8d8d8d;
  font-size: 0.86rem;
  text-align: left;
}

.secondary-link + .secondary-link {
  margin-top: 0.55rem;
}

.requirements {
  text-align: left;
  margin: 1rem 0 0.2rem 1rem;
  padding: 0;
  color: #666;
  font-size: 0.94rem;
  line-height: 1.26;
}

.requirements li {
  margin-bottom: 0.2rem;
}

/* Simulated iPhone */
.phone-scene {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: transparent;
  padding: 1rem 1rem 1.4rem;
  align-content: center;
  gap: 1rem;
}

.phone-frame {
  width: 292px;
  max-width: 100%;
  background: linear-gradient(180deg, #20212a, #171822);
  border: 1px solid #1a1b22;
  border-radius: 34px;
  padding: 12px 10px;
  box-shadow:
    0 12px 24px rgba(26, 27, 34, 0.25),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.phone-screen {
  background: #f4f4f7;
  border: 1px solid #cfd0d6;
  border-radius: 24px;
  min-height: 560px;
  padding: 0.65rem 0.45rem 0.6rem;
  overflow: hidden;
}

.phone-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  margin-bottom: 0.62rem;
}

.phone-time {
  font-size: 0.86rem;
  color: #1f1f1f;
  letter-spacing: 0.01em;
}

.phone-status-icons {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #2a2a2a;
  font-size: 0.62rem;
}

.phone-signal {
  letter-spacing: -0.03em;
  transform: translateY(-1px);
}

.phone-wifi {
  font-size: 0.6rem;
}

.phone-battery {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  margin-left: 0.05rem;
}

.battery-body {
  width: 15px;
  height: 8px;
  border: 1px solid #2d2d2d;
  border-radius: 2px;
  position: relative;
  background: #fff;
}

.battery-body::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 1px;
  width: 10px;
  height: 4px;
  background: #6bd484;
  border-radius: 1px;
}

.battery-tip {
  width: 2px;
  height: 5px;
  border-radius: 1px;
  background: #2d2d2d;
}

.phone-nav-row {
  margin-bottom: 0.75rem;
}

.phone-back {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: #ebebed;
  color: #4f4f4f;
  font-size: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: default;
}

.phone-contact-wrap {
  text-align: center;
}

.contact-dot {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #b8c3df;
  margin: 0 auto 0.25rem;
  display: grid;
  place-items: center;
}

.contact-person {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid #fff;
  border-bottom-width: 2px;
  position: relative;
}

.contact-person::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 20px;
  height: 12px;
  border: 3px solid #fff;
  border-top: 0;
  border-radius: 0 0 10px 10px;
}

.phone-contact-id {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  color: #252525;
}

.phone-contact-id span {
  display: inline-block;
  font-size: 1.25rem;
  color: #888;
  transform: translateY(-2px);
}

.phone-subtitle {
  text-align: center;
  color: #909090;
  line-height: 1.3;
  margin-top: 0.75rem;
  font-size: 0.96rem;
}

.sms-bubble {
  margin-top: 1rem;
  max-width: 92%;
  background: #e7e7e7;
  border-radius: 14px;
  padding: 0.58rem 0.75rem;
  font-size: 0.52rem;
  line-height: 1.2;
  color: #303030;
}

.phone-spam-note {
  margin: 0.7rem 0.3rem 0;
  text-align: center;
  color: #8a8a8a;
  font-size: 0.4rem;
  line-height: 1.25;
}

.phone-report-wrap {
  text-align: center;
  margin: 0.38rem 0 0;
}

.phone-report-btn {
  display: inline-block;
  background: #d9e7ff;
  color: #2e66a5;
  border-radius: 10px;
  padding: 0.08rem 0.45rem;
  font-size: 0.46rem;
  font-weight: 700;
}

.phone-compose-row {
  margin-top: 1.15rem;
  width: 100%;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
  cursor: default;
}

.phone-plus {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f0f0f0;
  color: #424242;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.phone-compose-input {
  flex: 1;
  min-height: 36px;
  border-radius: 18px;
  border: 1px solid #e2e2e2;
  background: #f8f8f8;
  color: #c4c4c4;
  font-size: 0.45rem;
  display: inline-flex;
  align-items: center;
  padding: 0 0.6rem;
  text-align: left;
}

.phone-mic {
  color: #c5c5c5;
  font-size: 0.75rem;
}

.phone-scene-continue-btn {
  width: 292px;
  max-width: 100%;
  padding: 0.72rem 0.9rem;
  font-size: 0.92rem;
}

.code-hint {
  margin-top: 1.25rem;
  margin-bottom: 0.55rem;
  border: 1px solid #d6dbe1;
  background: #f3f7fb;
  color: #5f6a76;
  font-size: 0.84rem;
  line-height: 1.35;
  text-align: left;
  padding: 0.55rem 0.65rem;
  border-radius: 2px;
}

/* Final Compeer page */
.compeer-page {
  min-height: 100vh;
  background: #f6f6f6;
  max-width: 1030px;
  margin: 0 auto;
  border: 1px solid #d7d7d7;
}

.compeer-utility-bar {
  min-height: 46px;
  background: #21222c;
  color: #f4f4f4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.35rem 0.7rem;
  font-size: 0.68rem;
}

.utility-left,
.utility-right {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.font-size-chip {
  border: 1px solid #3c3d4f;
  padding: 0.12rem 0.25rem;
}

.utility-right button {
  border: 1px solid #9aaa61;
  background: transparent;
  color: #fff;
  font-size: 0.69rem;
  font-weight: 700;
  padding: 0.28rem 0.95rem;
  min-width: 124px;
  cursor: default;
  border-radius: 5px;
}

.compeer-topbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid #ddd;
  padding: 0.72rem 0.6rem;
  background: #fff;
}

.compeer-header-logo {
  width: 125px;
}

.compeer-main-nav {
  flex: 1;
}

.compeer-main-nav ul {
  display: flex;
  justify-content: flex-end;
  gap: 1.3rem;
  list-style: none;
  margin: 0;
  padding: 0;
  color: #5a5a5a;
  font-size: 0.83rem;
}

.compeer-search {
  color: #64809a;
  font-size: 1.45rem;
  line-height: 1;
  margin-left: 0.25rem;
}

.online-services {
  margin: 0.95rem 0.5rem 0;
  background: #1b6875;
  text-align: center;
  color: #fff;
  padding: 0.52rem 0.7rem;
}

.online-services h2 {
  margin: 0;
  font-size: 3.05rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.compeer-breadcrumb {
  margin: 0.38rem 0.62rem 0;
  color: #8e9ba6;
  font-size: 0.73rem;
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
}

.compeer-breadcrumb-icon svg {
  width: 0.8rem;
  height: 0.8rem;
  display: block;
}

.signin-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  padding: 1.25rem 0.5rem 0.85rem;
}

.signin-card {
  border: 1px solid #dfdfdf;
  background: #fafafa;
  min-height: 186px;
  padding: 0.76rem 0.82rem;
}

.signin-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.signin-icon {
  color: #2f99ab;
  flex-shrink: 0;
}

.signin-icon svg {
  width: 36px;
  height: 36px;
  display: block;
}

.signin-icon-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.signin-card h3 {
  margin: 0;
  color: #1b6875;
  font-size: 0.98rem;
  line-height: 1.1;
}

.signin-card p {
  color: #666;
  font-size: 0.42rem;
  line-height: 1.4;
  min-height: 34px;
  margin: 0.34rem 0 0;
}

.signin-card button {
  margin-top: 0.42rem;
  border: 2px solid #b2bf76;
  background: #fff;
  font-size: 0.78rem;
  padding: 0.24rem 0.92rem 0.3rem;
  font-weight: 700;
  color: #2f2f2f;
  cursor: default;
  border-radius: 5px;
}

.signin-card-cta {
  display: inline-block;
  margin-top: 0.42rem;
  border: 2px solid #b2bf76;
  background: #fff;
  font-size: 0.78rem;
  padding: 0.24rem 0.92rem 0.3rem;
  font-weight: 700;
  color: #2f2f2f;
  border-radius: 5px;
  text-decoration: none;
}

.signin-sub-links {
  margin-top: 0.38rem;
  color: #6c8597;
  font-size: 0.36rem;
}

.tax-btn-wrap {
  text-align: center;
  margin-top: 0.5rem;
}

.tax-btn {
  border: 2px solid #b2bf76;
  background: #fff;
  color: #2f2f2f;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.2rem 1.02rem 0.26rem;
  cursor: default;
  border-radius: 5px;
}

.compeer-footer {
  margin-top: 0.95rem;
  background: #252630;
  color: #fff;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0.95rem 0.65rem 0.8rem;
}

.footer-left {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.compeer-footer-logo {
  width: 140px;
  filter: brightness(0) invert(1);
}

.footer-links {
  display: flex;
  gap: 0.95rem;
  font-size: 0.48rem;
  margin-top: 0.16rem;
}

.footer-meta-links {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 0.25rem 0.95rem;
  color: #d0d3dd;
  font-size: 0.35rem;
  margin-top: 0.4rem;
}

.footer-social {
  display: flex;
  gap: 0.3rem;
}

.footer-social span {
  width: 24px;
  height: 24px;
  background: #fff;
  color: #242531;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
}

.flow-note {
  margin-top: 0.8rem;
  color: #7a7a7a;
  font-size: 0.96rem;
}

@media (max-width: 1000px) {
  .okta-card {
    width: 390px;
  }

  .okta-title {
    font-size: 1.5rem;
  }

  .method-content h4 {
    font-size: 1.2rem;
  }

  .sms-bubble {
    font-size: 1.35rem;
  }

  .online-services h2 {
    font-size: 2.3rem;
  }

  .compeer-utility-bar {
    font-size: 0.58rem;
  }

  .utility-right button {
    min-width: 102px;
    padding-inline: 0.62rem;
  }

  .signin-card p {
    font-size: 0.5rem;
    min-height: auto;
  }

  .signin-card button {
    font-size: 0.75rem;
  }

  .footer-links {
    font-size: 0.42rem;
  }
}

@media (max-width: 760px) {
  .email-header h1 {
    font-size: 1.45rem;
  }

  .email-meta {
    flex-wrap: wrap;
  }

  .email-date {
    width: 100%;
    margin-left: 0;
  }

  .okta-body {
    padding: 1.1rem 1rem;
  }

  .signin-cards {
    grid-template-columns: 1fr;
  }

  .compeer-utility-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .compeer-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .compeer-main-nav ul {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .compeer-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .footer-left {
    flex-direction: column;
    gap: 0.6rem;
  }

  .footer-meta-links {
    grid-template-columns: repeat(2, auto);
  }
}
