/* pp-otp.css — kode-skærmen (engangskode og 2-trinsbekræftelse) og kodeord-skærmen (2026-10-28).
   Plejeplans eget udtryk (2026-10-29): mørk navy, glas, teal og blå lysstriber som på forsiden.
   Bruges af pp-otp.js, pp-mfa.js og pp-kodeord.js. */

.potp-lag { --potp-teal: #2ee6c8; --potp-teal-d: #0e9d87; --potp-blaa: #7fd6ff; --potp-tekst: #eaf6ff; --potp-mat: #a9c1dc;
  position: fixed; inset: 0; z-index: 10050; display: grid; place-items: center; padding: 16px; overflow-y: auto;
  background: #081527; color: var(--potp-tekst); font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; opacity: 0; transition: opacity .35s ease; }
.potp-lag.er-aaben { opacity: 1; }
/* Baggrunden: bløde lysstriber i teal og blå, der langsomt glider (samme stemning som forsidens hero) */
.potp-lag::before { content: ""; position: fixed; inset: -20%; pointer-events: none;
  background:
    linear-gradient(118deg, transparent 32%, rgba(46, 230, 200, .16) 38%, transparent 44%),
    linear-gradient(128deg, transparent 54%, rgba(127, 214, 255, .12) 58%, transparent 63%),
    linear-gradient(106deg, transparent 14%, rgba(14, 157, 135, .16) 20%, transparent 26%),
    radial-gradient(900px 520px at 85% 15%, rgba(46, 230, 200, .14), transparent 70%),
    radial-gradient(800px 560px at 5% 95%, rgba(37, 99, 235, .22), transparent 70%);
  animation: potp-lys 18s ease-in-out infinite alternate; }
@keyframes potp-lys { from { transform: translate3d(-3%, -2%, 0) rotate(-1deg); } to { transform: translate3d(3%, 2%, 0) rotate(1deg); } }

.potp-logo { display: flex; align-items: center; justify-content: center; gap: 0; margin: 0 0 18px; font-weight: 850; font-size: 1.05rem; letter-spacing: -.01em; color: #fff; }
.potp-logo::before { content: ""; margin-right: 9px; width: 22px; height: 22px; border-radius: 7px; background: linear-gradient(135deg, #34d8bf, #3b82f6); box-shadow: 0 6px 16px -6px rgba(46, 230, 200, .7); }
.potp-logo span { color: var(--potp-blaa); }

.potp-kort { position: relative; width: min(440px, 100%); padding: 30px 28px 26px; border-radius: 28px; text-align: center;
  background: linear-gradient(160deg, rgba(22, 48, 82, .72), rgba(10, 24, 44, .82));
  border: 1px solid rgba(147, 197, 253, .18); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255, 255, 255, .07);
  -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2);
  transform: translateY(14px) scale(.98); transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.potp-lag.er-aaben .potp-kort { transform: none; }
/* Et lysglimt over glasset */
.potp-kort::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, transparent 40%, rgba(200, 240, 255, .06) 50%, transparent 60%); }

.potp-ikon { width: 54px; height: 54px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 16px;
  background: linear-gradient(160deg, rgba(46, 230, 200, .18), rgba(37, 99, 235, .18)); border: 1px solid rgba(46, 230, 200, .45); color: var(--potp-teal); }
.potp-ikon svg { width: 26px; height: 26px; }
.potp-kort h2 { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; margin: 0 0 6px; color: #fff; }
.potp-kort h2 em { font-style: normal; color: #5fe8d0; }
.potp-tekst { margin: 0 auto 22px; max-width: 340px; color: var(--potp-mat); font-size: .94rem; line-height: 1.5; }

/* QR-koden ved opsætning */
.potp-qr { display: grid; justify-items: center; gap: 8px; margin: -6px 0 20px; }
.potp-qr img { width: 168px; height: 168px; padding: 10px; border-radius: 16px; background: #fff; }
.potp-hemmelig { font: 600 .82rem/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; color: #d6ecff; letter-spacing: .08em; word-break: break-all;
  padding: 6px 10px; border-radius: 10px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(147, 197, 253, .2); }
.potp-qr small { color: var(--potp-mat); font-size: .78rem; }

/* De seks felter */
.potp-felter { position: relative; display: flex; justify-content: center; gap: 10px; margin: 0 0 20px; }
.potp-felt { width: 50px; height: 60px; border-radius: 14px; text-align: center; font: 800 1.6rem/1 system-ui, sans-serif; color: #fff; caret-color: var(--potp-teal);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(147, 197, 253, .24);
  transition: border-color .2s, box-shadow .2s, background .2s, transform .55s cubic-bezier(.2, .9, .25, 1); }
.potp-felt:focus { outline: none; border-color: var(--potp-teal); background: rgba(46, 230, 200, .08); box-shadow: 0 0 0 3px rgba(46, 230, 200, .25); }
.potp-felt.har-tal { border-color: rgba(46, 230, 200, .6); background: rgba(46, 230, 200, .06); }
.potp-felter.er-forkert .potp-felt { border-color: #f87171; background: rgba(248, 113, 113, .08); }
.potp-felter.er-forkert { animation: potp-ryst .42s ease; }
.potp-felter.er-rigtig .potp-felt { border-color: #4ade80; background: rgba(74, 222, 128, .1); box-shadow: 0 0 0 3px rgba(74, 222, 128, .2); }
@keyframes potp-ryst { 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }

.potp-fejl { min-height: 1.3em; margin: -8px 0 12px; color: #fca5a5; font-size: .88rem; font-weight: 600; }
.potp-gensend { margin: 0 0 18px; color: var(--potp-mat); font-size: .88rem; }
.potp-gensend button { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--potp-teal); cursor: pointer; }
.potp-gensend button:disabled { color: #6f88a6; cursor: default; }

/* Knappen: samme grønne knap som "Åbn appen" i menuen */
.potp-knap { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 18px; border-radius: 999px; border: 0; cursor: pointer;
  font: 800 1rem/1.2 system-ui, sans-serif; color: #04221e; background: linear-gradient(135deg, #34d8bf, #0e9d87); box-shadow: 0 12px 26px -12px rgba(18, 196, 168, .9);
  transition: filter .2s, transform .15s; }
.potp-knap:hover { filter: brightness(1.06); }
.potp-knap:active { transform: translateY(1px); }
.potp-knap:disabled { cursor: progress; filter: saturate(.85); }
.potp-knap:focus-visible { outline: 3px solid #b8fff2; outline-offset: 3px; }
.potp-spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(4, 34, 30, .3); border-top-color: #04221e; animation: potp-drej .8s linear infinite; }
@keyframes potp-drej { to { transform: rotate(360deg); } }
.potp-annuller { margin-top: 14px; background: none; border: 0; font: inherit; font-size: .88rem; color: var(--potp-mat); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.potp-annuller:hover { color: #fff; }

/* Kodeord-skærmen (pp-kodeord.js) bruger samme kort */
.potp-form { display: grid; gap: 12px; text-align: left; margin-bottom: 16px; }
.potp-form label { display: grid; gap: 6px; font-size: .85rem; font-weight: 700; color: #d6ecff; }
.potp-input { position: relative; }
.potp-input input { width: 100%; padding: 13px 52px 13px 14px; border-radius: 12px; border: 1px solid rgba(147, 197, 253, .24); background: rgba(255, 255, 255, .06);
  color: #fff; font: inherit; font-size: 1rem; }
.potp-input input:focus { outline: none; border-color: var(--potp-teal); box-shadow: 0 0 0 3px rgba(46, 230, 200, .22); }
.potp-vis { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--potp-mat); cursor: pointer; padding: 6px; font: inherit; font-size: .78rem; font-weight: 700; }
.potp-styrke { display: block; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.potp-styrke i { display: block; height: 100%; width: 0; background: #f87171; transition: width .25s, background .25s; }
.potp-krav { font-size: .8rem; color: var(--potp-mat); }

@media (max-width: 420px) {
  .potp-kort { padding: 26px 18px 22px; }
  .potp-felter { gap: 7px; }
  .potp-felt { width: 42px; height: 54px; font-size: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  .potp-lag::before, .potp-felter.er-forkert, .potp-spinner { animation: none; }
  .potp-felt, .potp-kort { transition: none; }
}
