/* Secure login — light shell aligned with cssDashboards/index_F3 (E3 tokens: teal, Lato, card borders) */

:root {
  --sl-teal: #1b6875;
  --sl-teal-hover: #137f8b;
  --sl-page-bg: #f5fbfd;
  --sl-ink: #0b1620;
  --sl-ink-muted: #52545f;
  --sl-border: #dad9d6;
  --sl-shadow-lift: 0 4px 20px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
  --sl-shadow-card: 0 18px 46px rgba(2, 6, 23, 0.1);
}

* {
  box-sizing: border-box;
}

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

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

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

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

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

.sl-top-bar {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  right: 0;
  min-height: 64px;
  display: flex;
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: var(--sl-shadow-lift);
}

.sl-top-bar-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px 0 20px;
  display: flex;
  align-items: center;
}

.sl-top-bar img {
  height: 32px;
  width: auto;
  display: block;
}

.signin-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: calc(64px + clamp(2rem, 4vw, 3.5rem)) 0 3rem;
}

.signin-content {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.78fr);
  gap: 1.5rem;
  align-items: start;
}

.login-panel,
.quick-links-panel {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: none;
  background: #ffffff;
  border: 1px solid var(--sl-border);
  border-radius: 18px;
  box-shadow: var(--sl-shadow-card);
}

.login-panel {
  padding: 2.3rem;
}

.login-panel h1 {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 4.4rem);
  line-height: 0.98;
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--sl-ink);
}

.signin-kicker {
  margin: 0 0 0.85rem;
  color: var(--sl-teal);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.signin-subtitle {
  width: min(100%, 520px);
  margin: 0.95rem 0 1.75rem;
  color: var(--sl-ink-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.login-panel input {
  display: block;
  width: min(100%, 460px);
  height: 54px;
  margin-bottom: 0.8rem;
  border: 1px solid var(--sl-border);
  border-radius: 14px;
  background: #ffffff;
  color: var(--sl-ink);
  padding: 0 1rem;
  font-size: 1rem;
  outline: none;
}

.login-panel input::placeholder {
  color: #73757f;
}

.login-panel input:focus {
  border-color: var(--sl-teal);
  box-shadow: 0 0 0 4px rgba(27, 104, 117, 0.15);
}

.login-panel button,
.id-btn.primary {
  background: var(--sl-teal);
  color: #fff;
  border: 0;
}

.login-panel button {
  min-width: 152px;
  height: 50px;
  border-radius: 4px;
  padding: 0 1.4rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(27, 104, 117, 0.22);
}

.login-panel button:hover,
.login-panel button:focus-visible {
  background: var(--sl-teal-hover);
}

.login-panel-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.inline-link {
  display: inline-block;
  margin-top: 0;
  color: var(--sl-teal);
  text-decoration: none;
  font-size: 0.98rem;
}

.inline-link:hover,
.inline-link:focus-visible {
  color: var(--sl-teal-hover);
  text-decoration: underline;
}

.id-inline-link {
  color: var(--sl-teal);
}

.login-support-copy {
  width: min(100%, 540px);
  margin-top: 1.6rem;
  margin-bottom: 0;
  color: var(--sl-ink-muted);
  line-height: 1.6;
}

.quick-links-panel {
  min-height: 100%;
  padding: 2rem 1.6rem;
}

.quick-links-panel h2 {
  margin: 0 0 1.35rem;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--sl-ink);
}

.quick-links-panel a {
  display: block;
  margin-bottom: 0.7rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--sl-border);
  border-radius: 4px;
  background: #f9fafc;
  color: var(--sl-teal);
  text-decoration: none;
  font-weight: 600;
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    transform 0.18s ease;
}

.quick-links-panel a:hover,
.quick-links-panel a:focus-visible {
  border-color: rgba(27, 104, 117, 0.45);
  background: rgba(27, 104, 117, 0.06);
  transform: translateY(-1px);
}

.sl-scene.is-modal-only .signin-shell {
  display: none;
}

.identity-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 22, 32, 0.4);
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.identity-overlay.is-hidden,
.identity-modal.is-hidden,
.signing-in-overlay.is-hidden {
  display: none;
}

.identity-modal {
  width: 480px;
  max-width: 100%;
  background: #fff;
  border: 1px solid #a5a5a5;
  border-radius: 4px;
  overflow: hidden;
}

.phone-preview-modal {
  width: 520px;
}

.identity-modal > header {
  background: #1b6875;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  padding: 0.7rem 0.9rem;
}

.identity-body {
  padding: 0.95rem 0.9rem 1rem;
}

.identity-body p {
  margin: 0 0 1rem;
  line-height: 1.4;
}

.option-title {
  margin-bottom: 0.42rem !important;
}

.identity-body select,
.identity-body input {
  width: 100%;
  height: 38px;
  border: 1px solid #c8c8c8;
  margin-bottom: 0.62rem;
  padding: 0 0.5rem;
}

.id-btn {
  height: 34px;
  padding: 0 0.9rem;
  border-radius: 3px;
  cursor: pointer;
  font-weight: 700;
}

.id-btn.secondary {
  border: 1px solid #bcbcbc;
  background: #fff;
  color: #4c4c4c;
}

.id-row {
  display: flex;
  gap: 0.52rem;
  margin: 0.85rem 0;
}

.iv-phone-scene {
  display: grid;
  place-items: center;
  margin-bottom: 0.9rem;
}

.iv-phone-frame {
  width: 292px;
  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);
}

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

.iv-phone-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  color: #1f1f1f;
}

.iv-phone-time {
  font-size: 0.82rem;
  font-weight: 600;
}

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

.iv-phone-battery {
  display: inline-flex;
  align-items: center;
  gap: 1px;
}

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

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

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

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

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

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

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

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

.iv-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;
}

.iv-phone-contact-id {
  margin: 0;
  font-size: 2.4rem;
  font-weight: 700;
}

.iv-phone-contact-id span {
  color: #888;
  font-size: 1.1rem;
}

.iv-phone-subtitle {
  text-align: center;
  color: #909090;
  line-height: 1.28;
  margin-top: 0.7rem;
  font-size: 0.84rem;
}

.iv-sms-bubble {
  margin-top: 0.8rem;
  max-width: 92%;
  background: #e7e7e7;
  border-radius: 14px;
  padding: 0.52rem 0.64rem;
  font-size: 0.66rem;
  line-height: 1.2;
}

.iv-phone-spam-note {
  margin: 0.58rem 0.3rem 0;
  text-align: center;
  color: #8a8a8a;
  font-size: 0.48rem;
}

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

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

.iv-phone-compose-row {
  margin-top: 1rem;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

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

.iv-phone-compose-input {
  flex: 1;
  min-height: 32px;
  border-radius: 16px;
  border: 1px solid #e2e2e2;
  background: #f8f8f8;
  color: #c4c4c4;
  font-size: 0.5rem;
  display: inline-flex;
  align-items: center;
  padding: 0 0.55rem;
}

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

.iv-continue-btn {
  width: 100%;
  height: 40px;
  border-radius: 5px;
}

.signing-in-overlay {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(11, 22, 32, 0.32);
  backdrop-filter: blur(6px);
}

.signing-in-card {
  width: min(460px, 100%);
  padding: 2rem 2rem 1.85rem;
  border: 1px solid var(--sl-border);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.16);
  text-align: center;
}

.signing-in-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin-bottom: 1.35rem;
}

.signing-in-okta-logo {
  height: 28px;
  width: auto;
}

.signing-in-compeer-logo {
  height: 30px;
  width: auto;
}

.signing-in-divider {
  width: 1px;
  height: 24px;
  background: #d8dee3;
}

.signing-in-spinner {
  width: 50px;
  height: 50px;
  margin: 0 auto 1rem;
  border: 4px solid rgba(27, 104, 117, 0.14);
  border-top-color: var(--sl-teal);
  border-radius: 50%;
  animation: sl-spin 0.8s linear infinite;
}

.signing-in-card h2 {
  margin: 0 0 0.5rem;
  color: var(--sl-teal);
  font-size: 1.65rem;
}

.signing-in-card p {
  margin: 0;
  color: var(--sl-ink-muted);
  line-height: 1.55;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 900px) {
  .signin-shell {
    width: min(calc(100% - 32px), 1180px);
    padding-top: calc(64px + 1.5rem);
  }

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

  .login-panel,
  .quick-links-panel {
    padding: 1.5rem;
  }

  .sl-top-bar-inner {
    padding: 0 20px 0 16px;
  }
}

@media (max-width: 560px) {
  .signin-shell {
    width: calc(100% - 24px);
  }

  .login-panel button {
    width: 100%;
  }

  .login-panel-actions {
    align-items: stretch;
  }
}

@keyframes sl-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}
