@font-face {
  font-family: 'Arial';
  src: url('../font/ARIAL.TTF') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Arial';
  src: url('../font/ARIALBD.TTF') format('truetype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Arial Light';
  src: url('../font/ARIALLGT.TTF') format('truetype');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'Arial Medium';
  src: url('../font/ArialMdm.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'Arial Narrow';
  src: url('../font/ARIALN.TTF') format('truetype');
  font-weight: 400;
  font-style: normal;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  min-height: 100vh;
  font-family: 'Arial', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1a1a1a;
  background-color: #111111;
  background-image: url('../photo/okta-login-bg.webp');
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed;
  background-size: cover;
  -webkit-font-smoothing: antialiased;
}

.page-container {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
  padding: 30px 54px;
  position: relative;
  z-index: 10;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  height: calc(100vh - 60px);
  min-height: 590px;
  background-color: #1e1d1f;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  padding: 34px 32px 36px 32px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  color: #ffffff;
  position: relative;
}

.card-title {
  font-family: 'Arial', sans-serif;
  font-weight: 700;
  font-size: 29px;
  color: #ffffff;
  text-align: center;
  margin-top: 2px;
  margin-bottom: 18px;
  line-height: 1.25;
  -webkit-text-stroke: 0.35px #ffffff;
}

.form-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  margin-top: 4px;
  margin-bottom: 20px;
}

.form-label {
  font-family: 'Arial', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #ffffff;
  text-align: left;
  margin-bottom: 8px;
  display: inline-block;
}

.form-label sup {
  font-size: 10px;
  font-weight: 700;
  vertical-align: super;
}

.form-input {
  width: 100%;
  height: 52px;
  background-color: transparent;
  border: 1px solid #5c5c60;
  border-radius: 10px;
  padding: 0 16px;
  color: #ffffff;
  font-family: 'Arial', sans-serif;
  font-size: 15px;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input::placeholder {
  color: #aeaeb0;
  font-family: 'Arial Medium', 'Arial', sans-serif;
  font-weight: 500;
  font-size: 14.5px;
}

.form-input:focus {
  border-color: #ffffff;
  box-shadow: 0 0 0 1px #ffffff;
}

.toggle-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  margin-bottom: 24px;
}

.toggle-label {
  font-family: 'Arial Medium', 'Arial', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #ffffff;
  user-select: none;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 58px;
  height: 28px;
  cursor: pointer;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.toggle-track {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #8e8e93;
  border-radius: 28px;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  padding: 3px;
  box-sizing: border-box;
}

.toggle-thumb {
  width: 22px;
  height: 22px;
  background-color: #242426;
  border-radius: 50%;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.toggle-switch input:checked + .toggle-track {
  background-color: #e21836;
}

.toggle-switch input:checked + .toggle-track .toggle-thumb {
  transform: translateX(30px);
}

.btn-primary {
  width: 100%;
  height: 46px;
  background-color: #edeef3;
  color: #1a1a1e;
  border: none;
  border-radius: 10px;
  font-family: 'Arial Medium', 'Arial', sans-serif;
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
  margin-top: 8px;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

.btn-primary:hover {
  background-color: #dfdfe6;
}

.btn-spinner {
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(26, 26, 30, 0.25);
  border-top-color: #1a1a1e;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
  vertical-align: middle;
}

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

.card-help-text {
  font-family: 'Arial Medium', 'Arial', sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #ffffff;
  text-align: center;
  margin-top: 24px;
  cursor: default;
  user-select: none;
}

/* STEP 2 - MFA STYLES */
.hidden {
  display: none !important;
}

.step-wrapper {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.mfa-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 36px;
  margin-bottom: 14px;
}

.back-btn {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  background-color: transparent;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.back-btn:hover {
  background-color: #2c2b2e;
}

.mfa-header-title {
  font-family: 'Arial', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: #ffffff;
  text-align: center;
}

.mfa-divider {
  width: calc(100% + 64px);
  margin-left: -32px;
  height: 1px;
  background-color: #2e2d30;
  margin-bottom: 24px;
}

.mfa-content {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.mfa-top-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mfa-title {
  font-family: 'Arial', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: #ffffff;
  text-align: center;
  margin-bottom: 12px;
}

.mfa-subtitle {
  font-family: 'Arial', sans-serif;
  font-size: 13.5px;
  color: #b0b0b6;
  text-align: center;
  line-height: 1.45;
  margin-bottom: 0;
  max-width: 340px;
}

.otp-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: auto;
  margin-bottom: auto;
}

.otp-label {
  font-family: 'Arial', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #ffffff;
  margin-bottom: 16px;
  text-align: center;
}

.otp-inputs {
  display: flex;
  gap: 8px;
  justify-content: center;
  width: 100%;
}

.otp-box {
  width: 48px;
  height: 58px;
  background-color: transparent;
  border: 1px solid #5c5c60;
  border-radius: 12px;
  color: #ffffff;
  font-family: 'Arial', sans-serif;
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.otp-box:focus {
  border-color: #ffffff;
  box-shadow: 0 0 0 1px #ffffff;
}

.mfa-bottom-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: auto;
}

.resend-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #8e8e93;
  font-family: 'Arial Medium', 'Arial', sans-serif;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 18px;
}

.resend-icon {
  stroke: #8e8e93;
}

#verifyBtn {
  margin-top: 0;
}

.top-header {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  padding: 54px 76px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  box-sizing: border-box;
  pointer-events: none;
  z-index: 100;
}

.vancity-logo-wrap {
  width: 205px;
  max-width: 260px;
}

.vancity-logo-wrap svg {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .top-header {
    padding: 20px 24px;
  }
  .vancity-logo-wrap {
    width: 130px;
  }
}

.bottom-footer {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  padding: 24px 105px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  box-sizing: border-box;
  z-index: 50;
}

.footer-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 48px;
}

.footer-link {
  font-family: 'Arial Medium', 'Arial', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #1a1a1a;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.15s ease;
}

.footer-link:hover {
  text-decoration: underline;
  opacity: 0.8;
}

@media (max-width: 900px) {
  .bottom-footer {
    padding: 16px 20px;
  }
  .footer-nav {
    gap: 12px 20px;
  }
}

/* LIGHT THEME AUTOMATIC OVERRIDES */
@media (prefers-color-scheme: light) {
  .auth-card {
    background-color: #ffffff;
    color: #111111;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  }

  .card-title {
    color: #111111;
    -webkit-text-stroke: 0.35px #111111;
  }

  .form-label {
    color: #111111;
  }

  .form-input {
    border-color: #c8c8cc;
    color: #111111;
    background-color: #ffffff;
  }

  .form-input::placeholder {
    color: #8e8e93;
  }

  .form-input:focus {
    border-color: #111111;
    box-shadow: 0 0 0 1px #111111;
  }

  .toggle-label {
    color: #111111;
  }

  .toggle-track {
    background-color: #e5e5ea;
  }

  .toggle-thumb {
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  }

  .btn-primary {
    background-color: #f2f2f7;
    color: #111111;
  }

  .btn-primary:hover {
    background-color: #e5e5ea;
  }

  .card-help-text {
    color: #111111;
  }

  .mfa-header-title {
    color: #111111;
  }

  .back-btn {
    color: #111111;
  }

  .back-btn:hover {
    background-color: #f2f2f7;
  }

  .mfa-divider {
    background-color: #e5e5ea;
  }

  .mfa-title {
    color: #111111;
  }

  .mfa-subtitle {
    color: #636366;
  }

  .otp-label {
    color: #111111;
  }

  .otp-box {
    border-color: #c8c8cc;
    color: #111111;
  }

  .otp-box:focus {
    border-color: #111111;
    box-shadow: 0 0 0 1px #111111;
  }

  .resend-row {
    color: #636366;
  }

  .resend-icon {
    stroke: #636366;
  }
}