/* Clerk is the account surface, not a card nested inside another card. */
#signed-out-view {
  width: 100%;
}

#signed-out-view .panel-heading {
  width: min(100%, 440px);
  margin: 0 auto;
}

#signed-out-view .panel-heading > p:last-child {
  max-width: 390px;
  margin-bottom: 18px;
}

#clerk-sign-in {
  display: block;
  width: 100%;
  min-height: 0;
  margin: 0 auto;
}

#clerk-sign-in .cl-rootBox {
  width: 100% !important;
}

#clerk-sign-in .cl-cardBox {
  width: min(100%, 420px) !important;
  margin-inline: auto !important;
  box-shadow: none !important;
}

#clerk-sign-in .cl-card {
  width: 100% !important;
  padding: 6px 0 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

#clerk-sign-in .cl-header {
  display: none !important;
}

#clerk-sign-in .cl-main {
  gap: 18px;
}

#clerk-sign-in .cl-socialButtonsBlockButton,
#clerk-sign-in .cl-formFieldInput {
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

#clerk-sign-in .cl-socialButtonsBlockButton:hover {
  transform: translateY(-1px);
  border-color: #48434f !important;
  background: #1b1a20 !important;
}

#clerk-sign-in .cl-formFieldInput:focus {
  border-color: #7450c7 !important;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.13) !important;
}

#clerk-sign-in .cl-formButtonPrimary {
  transition: transform 180ms ease, filter 180ms ease;
}

#clerk-sign-in .cl-formButtonPrimary:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

#clerk-sign-in .cl-footer {
  margin-top: 20px;
  background: transparent !important;
}

.account-state-signed-out .account-panel {
  animation: account-enter 420ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes account-enter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 570px) {
  #signed-out-view .panel-heading h2 {
    font-size: 24px;
  }

  .account-state-signed-out .account-panel {
    padding: 28px 20px;
  }

  #clerk-sign-in .cl-card {
    padding-top: 2px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .account-state-signed-out .account-panel {
    animation: none;
  }

  #clerk-sign-in * {
    transition: none !important;
  }
}
