/* REGISTR loading logo (shared by the Academy, the client portal pages and Submissions). See registr-loader.js.
   Brand (registr-brand.md): the exact landing-page leaf + "registr.", maple red gradient, Space Grotesk logo word, Geist message.
   Look follows the page: html[data-theme=maroon] = maroon background with the white leaf; anything else = white background. */
.rl-overlay{position:fixed;inset:0;z-index:2147483000;display:flex;align-items:center;justify-content:center;padding:24px;
  background:#FFFFFF;color:#17130F;opacity:0;transition:opacity .2s ease;pointer-events:none}
.rl-overlay[hidden]{display:none}
.rl-overlay:focus{outline:none}
.rl-overlay.rl-on{opacity:1;pointer-events:auto}
html[data-theme=maroon] .rl-overlay{background:linear-gradient(180deg,#5E0615,#4A0410);color:#FFFFFF}
.rl-box{display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center;max-width:340px}
.rl-leaf{display:block;width:72px;height:72px;overflow:visible}
.rl-word{font-family:"Space Grotesk",system-ui,sans-serif;font-weight:500;font-size:26px;letter-spacing:-.03em;line-height:1;color:#C8071F}
.rl-word .rl-dot{color:#C8071F}
html[data-theme=maroon] .rl-overlay .rl-word,html[data-theme=maroon] .rl-overlay .rl-word .rl-dot{color:#FFFFFF}
.rl-msg{font-family:"Geist",system-ui,sans-serif;font-size:16px;line-height:1.45;color:#5A5550;margin:4px 0 0}
html[data-theme=maroon] .rl-overlay .rl-msg{color:#FFE9EC}
.rl-msg:empty{display:none}
.rl-stuck{display:flex;flex-direction:column;align-items:center;gap:10px;margin-top:6px}
.rl-stuck[hidden]{display:none}
.rl-stuck p{margin:0;font:600 16px/1.45 "Geist",system-ui,sans-serif;color:#17130F}
html[data-theme=maroon] .rl-overlay .rl-stuck p{color:#FFFFFF}
.rl-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 22px;border:0;border-radius:999px;cursor:pointer;
  font:600 15px "Geist",system-ui,sans-serif;background:#C8071F;color:#FFFFFF;box-shadow:2px 4px 18px rgba(23,19,15,.22)}
.rl-btn.rl-quiet{background:transparent;color:#5A5550;box-shadow:none;text-decoration:underline}
html[data-theme=maroon] .rl-overlay .rl-btn{background:#FFFFFF;color:#C8071F}
html[data-theme=maroon] .rl-overlay .rl-btn.rl-quiet{background:transparent;color:#FFFFFF}
.rl-btn:focus-visible{outline:3px solid #C8071F;outline-offset:2px}
html[data-theme=maroon] .rl-overlay .rl-btn:focus-visible{outline-color:#FFFFFF}

/* 2026-11-25 redesign: the exact leaf sits still inside a smooth progress ring (Registr Red arc on a Line-colour track).
   One short line under it. Phones first: centred, generous white space, no clutter. */
.rl-box{gap:18px;animation:rl-in .35s ease-out both}
.rl-mark{position:relative;display:grid;place-items:center;width:104px;height:104px}
.rl-mark .rl-ring{position:absolute;inset:0;width:100%;height:100%}
.rl-mark .rl-leaf{width:46px;height:46px;animation:rl-breathe 2.4s ease-in-out infinite}
.rl-ring{display:block;overflow:visible}
.rl-track{fill:none;stroke:#ECE3E3;stroke-width:3}
.rl-arc{fill:none;stroke:#C8071F;stroke-width:3;stroke-linecap:round;stroke-dasharray:28 72;transform-origin:50px 50px;animation:rl-spin 1.1s cubic-bezier(.45,.05,.55,.95) infinite,rl-grow 2.2s ease-in-out infinite}
.rl-overlay .rl-msg{font-size:16px;font-weight:500;color:#5A5550;letter-spacing:-.005em;margin:0}
html[data-theme=maroon] .rl-overlay .rl-track{stroke:rgba(255,255,255,.22)}
html[data-theme=maroon] .rl-overlay .rl-arc{stroke:#FFFFFF}
html[data-theme=maroon] .rl-overlay .rl-fill{fill:#FFFFFF}
@keyframes rl-spin{to{transform:rotate(360deg)}}
@keyframes rl-grow{0%,100%{stroke-dasharray:18 82}50%{stroke-dasharray:62 38}}
@keyframes rl-breathe{0%,100%{transform:scale(1)}50%{transform:scale(1.05)}}
@keyframes rl-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@media (min-width:761px){.rl-mark{width:120px;height:120px}.rl-mark .rl-leaf{width:52px;height:52px}.rl-overlay .rl-msg{font-size:17px}}

/* Small inline loader: inside a button or a panel while saving. */
.rl-inline{display:inline-flex;align-items:center;justify-content:center;gap:8px;font:600 15px/1.3 "Geist",system-ui,sans-serif}
.rl-inline .rl-ring{width:18px;height:18px;flex:0 0 auto}
.rl-inline .rl-track{stroke:currentColor;opacity:.25;stroke-width:9}
.rl-inline .rl-arc{stroke:currentColor;stroke-width:9}
.rl-busy-btn{cursor:progress}
.rl-panel{position:absolute;inset:0;z-index:5;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:16px;text-align:center;
  background:rgba(255,255,255,.94);color:#17130F;opacity:0;transition:opacity .2s ease}
.rl-panel.rl-on{opacity:1}
.rl-panel .rl-mark{width:64px;height:64px}.rl-panel .rl-mark .rl-leaf{width:28px;height:28px}
.rl-panel .rl-msg{margin:0}
.rl-host{position:relative}

/* Reduced motion: the leaf stays full and still; only a gentle opacity change. */
@media (prefers-reduced-motion:reduce){
  /* Static fallback: a still quarter ring and a still leaf; only a slow, gentle fade on the ring. */
  .rl-box,.rl-mark .rl-leaf{animation:none!important}
  .rl-arc{animation:rl-soft 2.4s ease-in-out infinite!important;stroke-dasharray:30 70;transform:rotate(-90deg)}
  .rl-overlay,.rl-panel{transition:none}
}
@keyframes rl-soft{0%,100%{opacity:1}50%{opacity:.6}}
@media print{.rl-overlay,.rl-panel{display:none!important}}
