.auth-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 16px;
  padding-bottom: 16px;
  width: 66.666%;
}

/* ── Layout classes for shared-auth-wrapper ── */

.auth-page-root {
  width: 100%;
  height: 100dvh;
  height: 100vh;
  display: flex;
  flex-direction: row;
  overflow: hidden;
}

.auth-side-panel {
  flex: 1;
  min-width: 0;
  height: 100%;
  background: #f7fafd;
}

.auth-main-panel {
  position: relative;
  flex: 2;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  align-items: center;
  padding: clamp(8px, 2vh, 24px) 16px;
}

.auth-main-content {
  width: 100%;
  max-width: 480px;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 1.5vh, 16px);
}

.auth-logo-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(2px, 0.5vh, 8px);
}

.auth-logo-area svg {
  max-width: 100%;
  height: auto;
}

.auth-tagline {
  font-weight: normal;
  font-size: clamp(0.8rem, 1.2vw, 1.125rem);
  text-align: center;
}

.mfa-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  text-align: center;
  position: relative;
}

.mfa-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  z-index: 0;
  margin: 0 56px;
}

.mfa-code-inputs {
  direction: ltr;
  display: flex;
  flex-direction: row;
  gap: 12px;
  transition: all 0.3s;
}

.mfa-code-input {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 500;
  outline: none;
}

.sso-buttons-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(4px, 0.6vh, 8px);
  width: 100%;
  padding-left: 12.5%;
  padding-right: 12.5%;
}

.sso-button-box {
  max-width: 320px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: clamp(6px, 1vh, 14px) 4px;
  background: #E1F2FF;
  width: 100%;
  box-sizing: border-box;
  cursor: pointer;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.sso-button-box:hover {
  background: #f1f9ff;
}

.auth-form-inputs {
  max-width: 320px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  border: 3px solid #EDEDED;
  width: 100%;
  box-sizing: border-box;
  border-radius: 12px;
  padding: clamp(8px, 1.2vh, 14px) 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  font-size: 0.875rem;
  outline: none;
  background: inherit;
}

.auth-form-inputs:focus {
  border-color: var(--auth-button-bg, #3C74D5);
}

.auth-button {
  max-width: 320px;
  padding: clamp(8px, 1.2vh, 14px);
  background: var(--auth-button-bg, #3C74D5) !important;
  color: white;
  letter-spacing: 0.05em;
  width: 100%;
  box-sizing: border-box;
  border-radius: 12px;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: none;
  cursor: pointer;
  font-size: 0.875rem;
  transition: opacity 0.2s, transform 0.15s;
}

.auth-button:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.auth-button:disabled {
  opacity: 0.5;
  cursor: default;
  transform: none;
}

.sso-button {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-self: center;
  gap: 12px;
  width: 127.19px;
  padding: 4px 0;
  max-width: 320px;
  background: none;
  border: none;
  cursor: pointer;
}

.sso-icon {
  width: 20px;
  height: 20px;
}

.sso-label {
  font-weight: 400;
  color: #838383;
  direction: ltr;
}

.or-divider {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 23px;
  width: 100%;
  height: -moz-fit-content;
  height: fit-content;
  margin: clamp(4px, 1vh, 20px) 0;
}

.or-line {
  flex-grow: 1;
  height: 0.5px;
  background-color: #9D9D9D;
  max-width: 250px;
}

.or-text {
  font-family: 'Assistant';
  font-weight: 400;
  line-height: 140%;
  text-align: center;
  letter-spacing: 0.02em;
  color: #9D9D9D;
  font-size: 1rem;
}

/* Animation for MFA shake */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
  20%, 40%, 60%, 80% { transform: translateX(4px); }
}

.animate-shake {
  animation: shake 0.5s ease-in-out;
}

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

/* ── Mobile responsive ── */

@media (max-width: 768px) {
  .auth-page-root {
    flex-direction: column;
    height: 100dvh;
    height: 100vh;
  }

  .auth-side-panel {
    display: none;
  }

  .auth-main-content {
    max-width: 100%;
    padding: 0 8px;
  }

  .auth-container {
    width: 100%;
  }

  .sso-buttons-container {
    padding-left: 0;
    padding-right: 0;
  }

  .sso-button-box,
  .auth-form-inputs,
  .auth-button {
    max-width: 100%;
  }

  .mfa-inner {
    margin: 0 16px;
  }

  .mfa-code-input {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .mfa-code-inputs {
    gap: 8px;
  }
}

@media (max-width: 400px) {
  .mfa-code-input {
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
  }

  .mfa-code-inputs {
    gap: 6px;
  }
}

