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

body {
  font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 15px;
  color: #1b1b1b;
  min-height: 100vh;
  overflow: hidden;
}

.page {
  display: none;
  flex-direction: column;
  min-height: 100vh;
}

.page.active {
  display: flex;
}

.background {
  position: fixed;
  inset: 0;
  z-index: -1;
}

.background-svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.outer {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 44px 0 36px;
}

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

.sign-in-box {
  background: #fff;
  min-width: 364px;
  max-width: 440px;
  width: 440px;
  padding: 44px 44px 36px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  position: relative;
  animation: fadeIn 0.35s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.lightbox-cover {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.6);
  z-index: 10;
}

.lightbox-cover.active {
  display: block;
}

.logo-container {
  margin-bottom: 16px;
}

.logo {
  height: 24px;
  display: block;
}

.header {
  margin-bottom: 12px;
}

.title {
  font-size: 24px;
  font-weight: 600;
  color: #1b1b1b;
  line-height: 1.33;
}

.form-group {
  margin-bottom: 16px;
}

.placeholder-container {
  position: relative;
}

.placeholder-container input[type="email"],
.placeholder-container input[type="password"] {
  width: 100%;
  height: 36px;
  padding: 6px 10px 6px 0;
  font-size: 15px;
  font-family: inherit;
  color: #1b1b1b;
  background: transparent;
  border: none;
  border-bottom: 1px solid #666;
  outline: none;
  transition: border-color 0.15s;
}

.placeholder-container input[type="email"]:focus,
.placeholder-container input[type="password"]:focus {
  border-bottom-color: #0067b8;
}

.placeholder-container input::placeholder {
  color: transparent;
}

.placeholder-label {
  position: absolute;
  left: 0;
  top: 8px;
  font-size: 15px;
  color: #666;
  pointer-events: none;
}

.placeholder-container input:not(:placeholder-shown) + .placeholder-label {
  display: none;
}

.error-text {
  display: none;
  font-size: 13px;
  color: #e81123;
  line-height: 1.385;
}

.error-text.visible {
  display: inline-block;
  margin-bottom: 4px;
}

.links {
  margin-top: 16px;
}

.links .form-group {
  margin-bottom: 12px;
  font-size: 13px;
}

.links a {
  color: #0067b8;
  text-decoration: none;
  font-size: 13px;
}

.links a:hover {
  text-decoration: underline;
  color: #005da6;
}

.links span {
  font-size: 13px;
  color: #1b1b1b;
}

.sign-in-options {
  width: 440px;
  max-width: 440px;
  margin-top: 16px;
}

.sign-in-options a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 44px;
  background: #f5f5f5;
  text-decoration: none;
  color: #1b1b1b;
  font-size: 15px;
  border: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: background 0.15s;
}

.sign-in-options a:hover {
  background: #ebebeb;
}

.button-container {
  margin-top: 16px;
}

.inline-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

input[type="button"],
input[type="submit"] {
  min-width: 108px;
  height: 33px;
  padding: 4px 12px;
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: background 0.15s;
}

#backButton {
  background: #e1e1e1;
  color: #1b1b1b;
}

#backButton:hover {
  background: #c8c8c8;
}

#backButton:active {
  background: #b0b0b0;
}

#nextButton,
#signInButton {
  background: #0067b8;
  color: #fff;
}

#nextButton:hover,
#signInButton:hover {
  background: #005da6;
}

#nextButton:active,
#signInButton:active {
  background: #004578;
}

.footer {
  padding: 16px 24px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-links a {
  font-size: 12px;
  color: #616161;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
  color: #1b1b1b;
}

.more-options {
  background: none;
  border: none;
  font-size: 16px;
  color: #616161;
  cursor: pointer;
  padding: 0 4px;
  letter-spacing: 2px;
  line-height: 1;
}

.more-options:hover {
  color: #1b1b1b;
}

.split-layout {
  display: flex;
  min-height: 100vh;
}

.split-left {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.split-left .illustration {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.split-right {
  width: 440px;
  min-width: 440px;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.password-card {
  flex: 1;
  padding: 108px 44px 44px;
  animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(12px); }
  to   { opacity: 1; transform: translateX(0); }
}

.banner-logo {
  height: 36px;
  display: block;
  margin-bottom: 20px;
}

.identity-banner {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 12px;
}

.back-arrow {
  background: none;
  border: none;
  font-size: 15px;
  color: #1b1b1b;
  cursor: pointer;
  padding: 2px 4px;
  line-height: 1;
}

.back-arrow:hover {
  color: #005da6;
}

.identity-email {
  font-size: 13px;
  color: #1b1b1b;
  line-height: 1.385;
}

.password-footer {
  padding: 16px 24px;
  justify-content: flex-end;
}

.password-footer .footer-links a {
  color: #fff;
}

.mfa-card {
  flex: 1;
  padding: 108px 44px 44px;
  animation: slideInRight 0.3s ease;
}

.mfa-email {
  font-size: 13px;
  color: #1b1b1b;
  margin-bottom: 16px;
  line-height: 1.385;
}

.mfa-prompt {
  margin-bottom: 24px;
}

.mfa-prompt-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.mfa-lock-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.mfa-prompt-text {
  font-size: 15px;
  color: #1b1b1b;
  line-height: 1.4;
}

.mfa-number-box {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.mfa-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border: 2px solid #1b1b1b;
  font-size: 36px;
  font-weight: 600;
  color: #1b1b1b;
  line-height: 1;
}

.mfa-help-text {
  font-size: 13px;
  color: #1b1b1b;
  line-height: 1.54;
  margin-bottom: 28px;
}

.mfa-button-container {
  margin-top: 0;
}

#mfaCancelButton {
  background: #e1e1e1;
  color: #1b1b1b;
  min-width: 108px;
  height: 32px;
  padding: 4px 20px;
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: background 0.15s;
}

#mfaCancelButton:hover {
  background: #c8c8c8;
}

#mfaCancelButton:active {
  background: #b0b0b0;
}

@media (max-width: 880px) {
  .split-layout {
    flex-direction: column;
  }

  .split-left {
    height: 200px;
    flex: none;
  }

  .split-right {
    width: 100%;
    min-width: unset;
  }

  .password-card {
    padding: 44px 24px;
  }

  .mfa-card {
    padding: 44px 24px;
  }
}

@media (max-width: 600px) {
  .sign-in-box {
    min-width: unset;
    width: 100%;
    max-width: 100%;
    box-shadow: none;
    padding: 24px 24px 44px;
  }

  .outer {
    align-items: flex-start;
    padding: 0;
  }

  .footer {
    padding: 12px 16px;
  }
}
