/* Pulse lockup (components/application-logo): the staff and the patients' sign-in pages. */
@font-face { font-family: "Quicksand"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/quicksand-latin-600.woff2") format("woff2"); }
.pulse-lockup { direction: ltr; display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 0 auto 22px; }
.pulse-lockup-mark { width: 74px; height: 74px; overflow: visible; filter: drop-shadow(0 10px 18px rgba(22, 103, 227, .22));
    animation: pl-pop .55s cubic-bezier(.2, .9, .3, 1.25) both; transform-origin: 50% 60%; }
.pulse-lockup-ecg { stroke-dasharray: 1; stroke-dashoffset: 1; animation: pl-draw .8s .25s ease-in-out forwards; }
.pulse-lockup-shine { animation: pl-shine .9s .75s ease-in-out both; }
.pulse-lockup-word { font-family: "Quicksand", "Inter Tight", sans-serif; font-weight: 600; font-size: 44px; line-height: 1; letter-spacing: -.01em; color: #17306e;
    animation: pl-rise .55s .3s ease-out both; }
.pulse-lockup-tag { font-family: "Inter Tight", sans-serif; font-weight: 600; font-size: 10.5px; letter-spacing: .24em; color: #6b7a99;
    animation: pl-rise .45s .6s ease-out both; }
@keyframes pl-pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }
@keyframes pl-draw { to { stroke-dashoffset: 0; } }
@keyframes pl-shine { from { transform: translateX(0) skewX(-18deg); } to { transform: translateX(210px) skewX(-18deg); } }
@keyframes pl-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
    .pulse-lockup-mark, .pulse-lockup-word, .pulse-lockup-tag, .pulse-lockup-shine { animation: none; }
    .pulse-lockup-ecg { animation: none; stroke-dashoffset: 0; }
}

/* ---------------------------------------------------------------- the frosted box beside the sign-in card, both sign-ins */
.pulse-glass { --ecg-w: min(400px, 88%); position: relative; color: #fff; display: grid; justify-items: center; gap: 22px; width: 100%; max-width: 480px; text-align: center;
    padding: 56px 40px 40px; border-radius: 28px; background: rgba(255, 255, 255, .10); border: 0;
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    /* no inset highlight on the top edge: it would run straight under the heartbeat's peaks */
    box-shadow: 0 30px 60px -30px rgba(5, 20, 60, .45); }
/* the border is drawn here, so it can open in the middle of the top edge: there the heartbeat (x-pulse-ecg) is the
   border. Both fade over the same stretch, so the line runs on without a seam. */
.pulse-glass::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 1px solid rgba(255, 255, 255, .26); pointer-events: none;
    -webkit-mask: linear-gradient(#000 0 0) bottom / 100% calc(100% - 3px) no-repeat,
        linear-gradient(90deg, #000 calc(50% - var(--ecg-w) / 2), transparent calc(50% - var(--ecg-w) / 2 + var(--ecg-w) * .18),
            transparent calc(50% + var(--ecg-w) / 2 - var(--ecg-w) * .18), #000 calc(50% + var(--ecg-w) / 2)) top / 100% 3px no-repeat;
    mask: linear-gradient(#000 0 0) bottom / 100% calc(100% - 3px) no-repeat,
        linear-gradient(90deg, #000 calc(50% - var(--ecg-w) / 2), transparent calc(50% - var(--ecg-w) / 2 + var(--ecg-w) * .18),
            transparent calc(50% + var(--ecg-w) / 2 - var(--ecg-w) * .18), #000 calc(50% + var(--ecg-w) / 2)) top / 100% 3px no-repeat; }
.pulse-ecg { position: absolute; top: -32px; left: 50%; width: var(--ecg-w); height: 64px; transform: translateX(-50%); overflow: visible; pointer-events: none; }
.pulse-ecg path { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: miter; stroke-miterlimit: 8; vector-effect: non-scaling-stroke; }
.pulse-ecg-line { opacity: .6; }
.pulse-ecg-beat { stroke: #7ff5e2; stroke-width: 3; stroke-dasharray: .22 1.3; stroke-dashoffset: .22;
    filter: drop-shadow(0 0 4px rgba(127, 245, 226, .95)) drop-shadow(0 0 10px rgba(62, 227, 182, .6));
    animation: pulse-ecg-run 2.6s cubic-bezier(.45, 0, .55, 1) .6s infinite; }
@keyframes pulse-ecg-run { 0% { stroke-dashoffset: .22; } 70%, 100% { stroke-dashoffset: -1.08; } }
@media (prefers-reduced-motion: reduce) { .pulse-ecg-beat { animation: none; opacity: 0; } }

/* inside a sign-in card the lockup is a little smaller, so the whole card fits the screen */
.auth-card .pulse-lockup, .pulse-auth-card .pulse-lockup { gap: 4px; }
.auth-card .pulse-lockup-mark, .pulse-auth-card .pulse-lockup-mark { width: 56px; height: 56px; }
.auth-card .pulse-lockup-word, .pulse-auth-card .pulse-lockup-word { font-size: 36px; }
.auth-card .pulse-lockup-tag, .pulse-auth-card .pulse-lockup-tag { font-size: 9.5px; }
