* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

.auth-shell {
  min-height: 100svh;
  background: #141414;
  position: relative;
}

.bg-img {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -2;
}

.bg-scrim {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: rgba(0, 0, 0, 0.04);
}

.auth-card-wrap {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.glass-card {
  width: min(510px, 88vw);
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  background: rgba(11, 16, 16, 0.84);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.28);
}

.glass-content {
  padding: 28px 34px 26px;
}

.auth-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.login-title {
  margin: 0 0 16px;
}

.login-form {
  display: grid;
  gap: 9px;
}

.input {
  width: 100%;
  min-height: 38px;
  padding: 7px 10px;
  background: #fff;
  border: 0;
  border-radius: 7px;
  outline: none;
}

.input:focus {
  box-shadow: 0 0 0 2px rgba(201, 154, 37, 0.34);
}

.primary {
  width: 100%;
  min-height: 40px;
  margin-top: 12px;
  border: 1px solid #b99117;
  border-radius: 4px;
  background: #002f21;
  cursor: pointer;
}

.primary:hover,
.primary:focus-visible {
  background: #06442f;
}

.auth-description {
  max-width: 620px;
  margin: 30px auto 28px;
}

.mfa-qr-container {
  min-height: 220px;
  margin: 0 0 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mfa-qr-container svg {
  border-radius: 4px;
}

.mfa-manual-secret {
  margin-bottom: 48px;
}

.mfa-secret-code {
  word-break: break-all;
}

.error {
  margin-bottom: 1rem;
  padding: 12px 16px;
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: 8px;
}

.auth-help {
  margin: 10px 0 0;
}

.auth-help-centered {
  max-width: 420px;
  margin-inline: auto;
}

.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 4px 10px;
  border: 1px solid #b99117;
  border-radius: 4px;
}

.back-link:hover,
.back-link:focus-visible {
  background: rgba(201, 154, 37, 0.16);
}

.setup-card {
  width: min(610px, 90vw);
}

.verify-card {
  width: min(480px, 88vw);
}

.verify-card .glass-content {
  padding: 24px 34px 24px;
}

.verify-card .primary {
  margin-top: 12px;
}

@media (max-width: 800px) {
  .auth-card-wrap {
    padding: 20px;
  }

  .glass-content,
  .verify-card .glass-content {
    padding: 22px;
  }

}
