/* livepow-web lp-account.css: sign-up / log-in sheet, account page, toast (js/lp-account.js). 360 px first. */

html.lp-acct-open { overflow: hidden; }

.lp-acct-ov {
  position: fixed; inset: 0; z-index: 200; background: rgba(15, 30, 50, .55);
  display: flex; align-items: flex-end; justify-content: center;
  animation: lp-acct-fade .15s ease-out;
}
.lp-acct-sheet {
  position: relative; width: 100%; max-width: 440px; max-height: 92vh; overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: #fff; color: var(--lp-text); border-radius: 14px 14px 0 0; padding: 18px 16px 22px;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, .25);
  animation: lp-acct-up .2s ease-out;
}
@media (min-width: 560px) {
  .lp-acct-ov { align-items: center; padding: 16px; }
  .lp-acct-sheet { border-radius: 12px; padding: 22px 24px 24px; }
}
@keyframes lp-acct-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lp-acct-up { from { transform: translateY(24px); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .lp-acct-ov, .lp-acct-sheet { animation: none; } }

.lp-acct-x {
  position: absolute; top: 6px; right: 8px; width: 40px; height: 40px; border: 0; background: none;
  font-size: 26px; line-height: 1; color: var(--lp-muted); cursor: pointer; border-radius: 50%;
}
.lp-acct-x:hover, .lp-acct-x:focus-visible { background: #eef2f7; color: var(--lp-text); }

.lp-acct-h { margin: 0 36px 6px 0; font-size: 1.2rem; color: var(--lp-blue); }
.lp-acct-sub { margin: 0 0 14px; font-size: .92rem; color: var(--lp-muted); }
.lp-acct-body p { margin: 0 0 10px; }

.lp-acct-oauth { display: grid; gap: 8px; margin: 4px 0 12px; }
.lp-acct-prov {
  display: flex; align-items: center; justify-content: center; gap: 10px; height: 44px; width: 100%;
  font: inherit; font-weight: 700; font-size: .95rem; border-radius: 8px; cursor: pointer;
}
.lp-acct-google { background: #fff; color: #1f1f1f; border: 1px solid #c7c7c7; }
.lp-acct-google:hover { background: #f4f6f9; }
.lp-acct-apple { background: #000; color: #fff; border: 1px solid #000; }
.lp-acct-apple:hover { background: #222; }
.lp-acct-ico { display: inline-flex; }
.lp-acct-or { display: flex; align-items: center; gap: 10px; margin-top: 4px; color: var(--lp-muted); font-size: .82rem; }
.lp-acct-or::before, .lp-acct-or::after { content: ""; flex: 1; border-top: 1px solid #ddd; }

.lp-acct-form { display: grid; gap: 10px; }
.lp-acct-form .lp-field input { height: 44px; }
.lp-acct-form .lp-form-actions .lp-btn { width: 100%; height: 44px; font-size: 1rem; }
.lp-acct-form .lp-check { font-size: .85rem; }

.lp-acct-alt { margin-top: 12px !important; font-size: .9rem; text-align: center; }
.lp-acct-link {
  border: 0; background: none; padding: 0; font: inherit; color: var(--lp-link); text-decoration: underline; cursor: pointer;
}
.lp-acct-danger { color: #b00020; font-size: .85rem; }
.lp-acct-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 12px 0; }
.lp-acct-del { margin-top: 8px; padding: 10px; border: 1px solid #f0c4c4; border-radius: 8px; background: #fff7f7; display: grid; gap: 8px; }
.lp-acct-del[hidden], .lp-acct-body [hidden] { display: none; }
.lp-acct-del input { height: 40px; padding: 0 10px; font: inherit; font-size: 16px; border: 1px solid #bbb; border-radius: 6px; }

/* account.php */
.lp-acct-card { max-width: 480px; margin: 16px auto; padding: 18px 16px 22px; background: #fff; }
.lp-acct-why { max-width: 480px; margin: 0 auto 24px; padding: 0 4px; }

/* toast: signed-in note and the gentle long-range nudge */
.lp-acct-toast {
  position: fixed; z-index: 190; left: 50%; bottom: 12px; transform: translateX(-50%);
  width: calc(100% - 24px); max-width: 440px; box-sizing: border-box;
  background: var(--lp-blue); color: #fff; border-radius: 10px; padding: 12px 14px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .3); font-size: .92rem;
}
.lp-acct-toast p { margin: 0; }
.lp-acct-toast-act { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.lp-acct-toast .lp-btn-primary { background: #fff; color: var(--lp-blue); }
.lp-acct-toast .lp-btn-primary:hover { background: #e8f0fa; }
.lp-acct-toast .lp-btn:not(.lp-btn-primary) { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .6); }
