@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url("assets/middlesy/fonts/inter-latin.woff2") format("woff2")}
@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url("assets/middlesy/fonts/inter-latin-ext.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
/* Sign-in and sign-out pages for a workspace (signin.html, signout.html): the look of middlesy.com - light ground,
   Inter, white card with a hairline, pill controls - with the workspace's own accent painted over the
   --accent variables by signin.js, and its logo on the panel beside the card. */
:root {
  --background: #faf9f7; --ink: #111111; --ink-soft: rgba(17, 17, 17, .68); --ink-faint: rgba(17, 17, 17, .5); --violet: #1b0095;
  --hairline: rgba(17, 17, 17, .1); --hairline-2: rgba(17, 17, 17, .16);
  --accent: #111111; --accent-2: #1c1b19; --accent-3: #111111; --accent-rgb: 17, 17, 17;
  --font: Inter, ui-sans-serif, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; min-height: 100%; background: var(--background); color: var(--ink); font-family: var(--font); line-height: 1.5; -webkit-font-smoothing: antialiased; }
body { min-height: 100dvh; display: flex; flex-direction: column; background: radial-gradient(70% 45% at 50% 108%, rgba(var(--accent-rgb), .1), transparent 62%), var(--background); }
a { color: inherit; text-decoration: none; }
p, h1 { margin: 0; }
img, svg { display: block; }

/* ---------- nav (the landing's floating pill) ---------- */
.nav-wrap { position: fixed; top: .75rem; left: 0; right: 0; z-index: 40; display: flex; justify-content: center; pointer-events: none; }
.nav { pointer-events: auto; position: relative; width: min(100% - 1.5rem, 80rem); height: 3.25rem; background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-radius: 9999px; box-shadow: 0 0 0 1px var(--hairline), 0 8px 30px -18px rgba(17, 17, 17, .35); }
.logo { position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); display: flex; align-items: center; gap: .5rem; color: var(--ink); }
.logo-mark { width: 1.75rem; height: 1.75rem; border-radius: .5625rem; overflow: hidden; display: grid; place-items: center; flex: none; }
.logo-mark img { width: 100%; height: 100%; }
.logo-text { font-size: 1.125rem; line-height: 1; letter-spacing: -.02em; font-weight: 500; }
.back { position: absolute; right: .375rem; top: 50%; transform: translateY(-50%); border: 1px solid var(--hairline); background: #fff; border-radius: 9999px; padding: .5625rem 1.25rem; font-size: .9375rem; line-height: 1.2; color: var(--ink); transition: background .15s; }
.back:hover { background: var(--background); }

/* ---------- layout: the card and, on wide screens, the brand panel to its right ---------- */
/* The card and the brand panel share one grid row and stretch to it; the card's content sets the row's height, so the
   two are always exactly as tall as each other (the panel has no height of its own to insist on). */
.auth { flex: 1; width: min(100% - 2rem, 68rem); margin: 0 auto; padding: 6rem 0 2.5rem; display: grid; grid-template-columns: minmax(0, 27rem) minmax(0, 1fr); gap: clamp(1.25rem, 3vw, 2.5rem); align-items: stretch; align-content: center; }
.card { position: relative; width: 100%; background: #fff; border: 1px solid var(--hairline); border-radius: 1.5rem; padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: 0 30px 80px -50px rgba(var(--accent-rgb), .35); }
.brand { display: flex; align-items: center; margin-bottom: 1.25rem; min-height: 2.25rem; }
.brand-logo { height: 2.25rem; width: auto; max-width: 11rem; object-fit: contain; object-position: left center; }
.brand-logo.-square { width: 2.25rem; border-radius: .5rem; }
.eyebrow { font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); font-weight: 500; }
h1 { margin-top: .5rem; font-size: clamp(1.5rem, 1rem + 1.4vw, 1.875rem); line-height: 1.15; letter-spacing: -.012em; font-weight: 400; }
h1 b { font-weight: 500; }
h1 small { display: block; margin-top: .25rem; font-size: .9375rem; letter-spacing: 0; color: var(--ink-soft); font-weight: 400; }
.lede { margin-top: .75rem; color: var(--ink-soft); font-size: .9375rem; }
.error { display: none; margin: 1rem 0 0; padding: .75rem .875rem; border-radius: .875rem; background: rgba(179, 38, 30, .07); border: 1px solid rgba(179, 38, 30, .25); color: #8f1d17; font-size: .875rem; }
.error.show { display: block; }
/* Clerk mounts into this node and replaces its classes with its own (cl-rootBox, with a margin reset), so it is addressed by id. */
#mount { margin-top: 1.5rem; min-height: 7rem; display: grid; align-items: start; }
#mount:empty { min-height: 0; margin-top: 0; }   /* the component failed to load: the error above says so, no hole under it */
#mount .wait { display: inline-flex; align-items: center; gap: .625rem; color: var(--ink-faint); font-size: .875rem; }
.spin { width: .875rem; height: .875rem; border-radius: 50%; border: 2px solid var(--hairline-2); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn { display: inline-flex; align-items: center; justify-content: center; margin-top: .875rem; min-height: 2.75rem; padding: 0 1.5rem; border-radius: 9999px; background: linear-gradient(90deg, var(--accent-3), var(--accent)); color: #fff; font-weight: 500; font-size: .9375rem; transition: transform .2s; }
.btn:hover { transform: translateY(-.125rem); }
.note { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--hairline); font-size: .8125rem; color: var(--ink-faint); }
.note a { color: var(--accent); }

/* Clerk's component sits inside the card: no card of its own, our widths and type. Static looks (sizes, radii, colours,
   type, what is hidden) are set from signin.js through appearance.elements, which @clerk/ui 1 emits as one class per
   element. Edges and states are set here: @clerk/ui draws the edge of inputs and buttons as a box-shadow ring and pins
   border-width, the ring and the hover / focus looks with [data-variant] and pseudo-class rules, which outrank that single
   class; under #mount these outrank them in turn. The stable classes are the ones before the lock in the element's class
   list (cl-formFieldInput, cl-formButtonPrimary, ...). */
.cl-rootBox { width: 100% !important; }
.cl-cardBox { width: 100% !important; max-width: none !important; box-shadow: none !important; border: 0 !important; }
#mount .cl-formFieldInput, #mount .cl-otpCodeFieldInput { border: 1px solid var(--hairline-2); box-shadow: none; }
#mount .cl-formFieldInput:hover, #mount .cl-otpCodeFieldInput:hover { border-color: var(--hairline-2); box-shadow: none; }
#mount .cl-formFieldInput:focus, #mount .cl-otpCodeFieldInput:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .18); }
#mount .cl-socialButtonsBlockButton, #mount .cl-alternativeMethodsBlockButton { border: 1px solid rgba(17, 17, 17, .14); box-shadow: none; }
#mount .cl-socialButtonsBlockButton:hover, #mount .cl-alternativeMethodsBlockButton:hover { background: var(--background); }
#mount .cl-formButtonPrimary { box-shadow: none; }
#mount .cl-formButtonPrimary:hover { transform: translateY(-1px); filter: brightness(1.04); }
#mount .cl-socialButtonsBlockButton:focus-visible, #mount .cl-alternativeMethodsBlockButton:focus-visible, #mount .cl-formButtonPrimary:focus-visible { box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .3); }

/* Providers the Worker hides for now (SIGNIN_HIDDEN_PROVIDERS; signin.js marks <html data-hide-providers="…">): the
   button goes, on the first step and on the "use another method" list, and the remaining buttons take the full width
   (Clerk lays block buttons out in a grid with one column per provider). */
html[data-hide-providers~="google"] #mount .cl-socialButtonsBlockButton__google, html[data-hide-providers~="google"] #mount .cl-alternativeMethodsBlockButton__google,
html[data-hide-providers~="github"] #mount .cl-socialButtonsBlockButton__github, html[data-hide-providers~="github"] #mount .cl-alternativeMethodsBlockButton__github { display: none; }
html[data-hide-providers] #mount .cl-socialButtons { grid-template-columns: 1fr; }

/* ---------- the brand panel ---------- */
.panel { position: relative; overflow: hidden; isolation: isolate; min-height: 0; border-radius: 1.5rem; background: #fff; border: 1px solid var(--hairline); box-shadow: 0 30px 80px -50px rgba(var(--accent-rgb), .35); display: flex; flex-direction: column; justify-content: space-between; padding: 1.75rem 2rem; }
.panel-art { position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 55% at 22% 18%, rgba(var(--accent-rgb), .16), transparent 70%), radial-gradient(60% 50% at 85% 92%, rgba(var(--accent-rgb), .12), transparent 70%), linear-gradient(180deg, #fff, #f7f8fd); }
.panel-art .rings { position: absolute; left: 50%; top: 50%; width: 120%; max-width: none; transform: translate(-50%, -50%); color: rgba(var(--accent-rgb), .14); }
.panel-eyebrow { font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); font-weight: 500; }
.panel-logo-wrap { position: absolute; inset: 0; display: grid; place-items: center; padding: 4rem 3rem; pointer-events: none; }
.panel-logo { max-width: min(100%, 22rem); max-height: 7rem; width: auto; height: auto; object-fit: contain; filter: drop-shadow(0 18px 40px rgba(var(--accent-rgb), .18)); }
.panel-logo.-square { max-height: 11rem; max-width: 11rem; border-radius: 1.5rem; }
.panel-caption { display: grid; gap: .125rem; }
.panel-caption b { font-weight: 500; font-size: 1.0625rem; letter-spacing: -.01em; }
.panel-caption span { font-size: .875rem; color: var(--ink-soft); }
.panel-caption span:empty { display: none; }

.footer { width: min(100% - 2rem, 68rem); margin: 0 auto; padding: 0 0 2rem; display: flex; justify-content: space-between; gap: 1rem; font-size: .8125rem; color: var(--ink-faint); }
.footer a:hover { color: var(--ink); }

@media (max-width: 900px) {
  .auth { grid-template-columns: minmax(0, 1fr); justify-items: center; padding-top: 5.5rem; }
  .card { max-width: 30rem; }
  .panel { display: none; }
}
@media (max-width: 480px) {
  .back { display: none; }
  .auth { width: min(100% - 1.5rem, 68rem); padding-top: 5rem; }
  .card { border-radius: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) { .btn, .back { transition: none; } .btn:hover, #mount .cl-formButtonPrimary:hover { transform: none; } .spin { animation: none; border-top-color: var(--hairline-2); } }
