/* Auth Kit live 2FA demo: an iPhone frame with the app's 2FA Codes tab.
   Shared by app pages; the markup lives in the page, the behaviour in totp.js.
   Rebuilt from the homepage Lab (assets/home/home.css, "Auth Kit (light)"). */

.dphone{position:relative;width:min(100%,340px);aspect-ratio:360/720;padding:10px;border-radius:54px;margin:0 auto;
  background:linear-gradient(160deg,#343949,#0d0f16 38%,#20242f);
  box-shadow:0 0 0 1px rgba(255,255,255,.16),0 60px 110px -50px #000,0 40px 90px -45px var(--ac,#5B8CFF)}
.dphone__screen{position:relative;height:100%;border-radius:44px;overflow:hidden;background:#F2F2F7;isolation:isolate}
.dphone__screen::before{content:"";position:absolute;top:11px;left:50%;z-index:20;width:94px;height:27px;transform:translateX(-50%);border-radius:20px;background:#000}
/* without JS (or before it runs) the official App Store screenshot fills the screen */
.dphone__still{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:top}
/* the store screenshot already shows an iPhone, so until the live demo takes over the frame steps aside */
.dphone:not(.is-live){padding:0;background:none;border-radius:24px;aspect-ratio:600/1304}
.dphone:not(.is-live) .dphone__screen{border-radius:24px;background:#E8F0FB}
.dphone:not(.is-live) .dphone__screen::before{display:none}
.dsprite{position:absolute;width:0;height:0;overflow:hidden}

/* the demo is drawn on a 340x700 iPhone canvas and scaled to the frame (--fit is set by totp.js) */
.demo{position:absolute;top:0;left:0;width:340px;height:700px;transform:scale(var(--fit,1),var(--fity,var(--fit,1)));transform-origin:0 0;overflow:hidden;
  display:flex;flex-direction:column;font-family:-apple-system,BlinkMacSystemFont,'SF Pro Text','Inter',sans-serif;
  -webkit-font-smoothing:antialiased;line-height:1.3}
.demo[hidden]{display:none}
.demo svg{width:1em;height:1em;flex:none}
.demo button{font:inherit;color:inherit;background:none;border:0}

.ios-bar{position:relative;z-index:21;flex:none;display:flex;align-items:center;justify-content:space-between;height:50px;padding:6px 26px 0 34px;
  font-size:15px;font-weight:600;letter-spacing:-.01em}
.demo__tag{font-size:9.5px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;padding:3px 7px;border-radius:999px;border:1px solid currentColor;opacity:.75}
.tabbar{margin-top:auto;flex:none;display:grid;grid-template-columns:repeat(5,1fr);padding:7px 4px 26px;font-size:9.5px;font-weight:500;letter-spacing:.01em}
.tabbar span{display:flex;flex-direction:column;align-items:center;gap:3px;white-space:nowrap}
.tabbar svg{width:23px;height:23px}

.ak{background:linear-gradient(180deg,#E8F4FD 0,#F2F2F7 35%,#F2F2F7);color:#000}
.ak__nav{flex:none;display:flex;justify-content:flex-end;height:36px;padding:0 16px}
.ak__gear{width:22px!important;height:22px!important;color:#000}
.ak__title{flex:none;padding:0 16px 10px;font-size:29px;font-weight:700;letter-spacing:.01em;line-height:1.15}
.totp{list-style:none;display:grid;gap:10px;padding:0 14px;margin:0}
.totp__row{display:block;width:100%;padding:13px 13px 6px;border-radius:14px;background:#fff;text-align:left;cursor:pointer;transition:transform .15s}
.totp__row:active{transform:scale(.985)}
.totp__row:focus-visible{outline:2px solid #3B82F6;outline-offset:2px}
.totp__top{display:flex;align-items:center;gap:10px}
.totp__av{flex:none;width:38px;height:38px;border-radius:8px;display:grid;place-items:center;color:#fff;background:var(--k)}
.totp__av svg{width:20px;height:20px}
.totp__id{min-width:0}
.totp__n{display:block;font-size:14.5px;font-weight:600;line-height:1.2;color:#000}
.totp__e{display:block;font-size:12px;color:rgba(60,60,67,.6);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.totp__ring{position:relative;margin-left:auto;flex:none;width:31px;height:31px;border-radius:50%;display:grid;place-items:center;
  font-size:10.5px;font-weight:600;color:var(--rc,#3B82F6);font-variant-numeric:tabular-nums}
.totp__ring::before{content:"";position:absolute;inset:0;border-radius:50%;
  background:conic-gradient(var(--rc,#3B82F6) calc(var(--p,1)*1turn),#E5E5EA 0);
  -webkit-mask:radial-gradient(circle,transparent 12.5px,#000 13px);mask:radial-gradient(circle,transparent 12.5px,#000 13px)}
.totp.is-mid{--rc:#FF9500}
.totp.is-low{--rc:#FF3B30}
.totp__bot{display:flex;align-items:center;gap:6px;margin-top:2px}
.totp__cp{width:38px;height:38px;display:grid;place-items:center;color:#3B82F6}
.totp__cp svg{width:16px;height:16px}
.totp__c{font:700 24px/1 ui-monospace,'SF Mono',SFMono-Regular,Menlo,monospace;color:#3B82F6;letter-spacing:-.01em;white-space:pre}
.totp__row.is-new .totp__c{animation:code-in .45s cubic-bezier(.16,1,.3,1)}
.totp__row.is-copied .totp__e{color:#34C759}
@keyframes code-in{from{opacity:0;transform:translateY(6px)}}
.ak__fab{position:absolute;right:18px;bottom:94px;width:48px;height:48px;border-radius:50%;display:grid;place-items:center;color:#fff;
  background:linear-gradient(135deg,#60A5FA,#3B82F6);box-shadow:0 4px 8px rgba(59,130,246,.4)}
.ak__fab svg{width:20px;height:20px}
.ak__tabs{background:rgba(249,249,249,.94);border-top:.5px solid rgba(0,0,0,.18);color:#999}
.ak__tabs .is-on{color:#007AFF}

@media (prefers-reduced-motion:reduce){.totp__row.is-new .totp__c{animation:none}}
