.lspf-auth {
  max-width: 480px;
  margin: 60px auto;
  padding: 0 20px;
}
.lspf-auth__card {
  background: #fff;
  padding: 32px;
  border-radius: 8px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}
.lspf-auth h1 {
  margin-top: 0;
  font-size: 24px;
}
.lspf-auth__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.lspf-auth__form label {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  color: #444;
  gap: 4px;
}
.lspf-auth__form input[type="text"],
.lspf-auth__form input[type="email"],
.lspf-auth__form input[type="password"] {
  padding: 10px 12px;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  font-size: 15px;
}
.lspf-auth__form input:disabled {
  background: #f5f5f5;
  color: #888;
}
.lspf-auth .lspf-auth__form button[type="submit"] {
  width: 100%;
  margin-top: 16px;
}
.lspf-auth__inline {
  flex-direction: row !important;
  align-items: center;
  gap: 8px !important;
}
.lspf-auth__sep {
  text-align: center;
  color: #999;
  margin: 18px 0;
  position: relative;
}
.lspf-auth__sep::before,
.lspf-auth__sep::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: #e0e0e0;
}
.lspf-auth__sep::before {
  left: 0;
}
.lspf-auth__sep::after {
  right: 0;
}
.lspf-auth__btn-google {
  display: block;
  text-align: center;
  padding: 12px;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  text-decoration: none;
  color: #222;
  font-weight: 500;
}
.lspf-auth__btn-google:hover {
  background: #f7f7f7;
}
.lspf-auth__links {
  text-align: center;
  font-size: 14px;
}
.lspf-auth__error {
  background: #fde8e8;
  color: #9b1c1c;
  padding: 10px 12px;
  border-radius: 4px;
  margin-bottom: 14px;
}
.lspf-auth__notice {
  background: #def7ec;
  color: #03543f;
  padding: 10px 12px;
  border-radius: 4px;
  margin-bottom: 14px;
}

.lspf-auth__avatar {
  text-align: center;
  margin: 0 auto 24px;
}
.lspf-auth__avatar-img {
  width: 128px;
  height: 128px;
  border-radius: 100%;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}
/* `display: block` above beats the UA `[hidden] { display:none }` rule,
 * so when the avatar img has no src we need an explicit override to keep
 * it collapsed and let the placeholder stand alone. */
.lspf-auth__avatar-img[hidden] {
  display: none;
}
.lspf-auth__avatar-img--empty {
  background: #f0f0f0;
  color: #888;
  font-size: 48px;
  font-weight: 600;
  line-height: 128px;
  text-align: center;
}
.lspf-auth__avatar-name {
  margin-top: 10px;
  font-size: 16px;
  font-weight: 600;
  color: #222;
}
.lspf-auth__avatar-edit {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  color: var(--primary);
  cursor: pointer;
  text-decoration: underline;
}
.lspf-auth__avatar-edit input[type="file"] {
  display: none;
}

.lspf-auth .lspf-auth__logout {
  width: 100%;
  margin-top: 8px;
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}
.lspf-auth .lspf-auth__logout:hover {
  background: var(--primary);
  color: #fff;
}
