/* Despani SSO login — Colibri Kit login-02 with the Despani heritage tokens
   (oxblood / cream) from site-home/colibri/packs/despani.css. */
html[data-kit-theme=despani]{
  --dsp-oxblood:#7d0001; --dsp-crimson:#941515; --dsp-red:#b3191f; --dsp-gold:#c19a3b; --dsp-gold-soft:#e8d49a;
  --dsp-ink:#0d0c0e; --dsp-ink-2:#2b2a2c; --dsp-cream:#fffdf3; --dsp-parchment:#f6efe1;
  --c-font:"Noto Sans Georgian","Lucida Grande","Segoe UI",Verdana,Tahoma,ui-sans-serif,system-ui,sans-serif;
  --c-font-display:"Noto Serif Georgian","BPG Nino Mtavruli",Georgia,"Times New Roman",serif;
  --ui-background:#f6efe1; --ui-foreground:#2a2220; --ui-card:#fffdf3; --ui-popover:#fffdf3;
  --ui-muted:#efe5d2; --ui-muted-foreground:#6e5d55; --ui-accent:#f7e7e2; --ui-accent-foreground:#5e0c0f;
  --ui-primary:#8e1116; --ui-primary-foreground:#fff; --ui-ring:#c19a3b; --ui-border:#e1d3bb; --ui-input:#d9c8ab;
  --ui-success:#2f7d32; --ui-warning:#b7791f; --ui-destructive:#b3191f;
  --ui-font:var(--c-font); --ui-radius:6px; --ui-radius-sm:4px; --ui-radius-lg:8px; --ui-control-h:42px;
  --ui-shadow-sm:0 1px 2px #5a2a1a24; --ui-shadow:0 10px 26px -14px #5a2a1a40;
  --ui-text-sm:14px;
}
html[data-kit-theme=despani] :is(h1,h2,h3){font-family:var(--c-font-display);letter-spacing:0;color:var(--dsp-oxblood)}
html,body{height:100%;margin:0}
body.auth-body{min-height:100vh;background:var(--ui-background);color:var(--ui-foreground);font-family:var(--ui-font)}

/* Full-viewport login-02: drop the kitchen-sink demo frame. */
.ui-root .auth-page.auth-split{
  min-height:100vh;width:100%;border:0;border-radius:0;overflow:hidden;
  background:var(--dsp-cream);
}
.ui-root .auth-col{padding:1.75rem 2rem 2rem;max-width:520px;width:100%;box-sizing:border-box;margin:0 auto}
.ui-root .auth-col-body{width:100%}
.ui-root .auth-col-body>.auth-form{max-width:360px;width:100%}
.ui-root .auth-form [data-ui=field]{width:100%;max-width:none}

.auth-logo{height:56px;width:auto;display:block;object-fit:contain}
.auth-brand{gap:.75rem}
.auth-brand-text{display:inline-flex;flex-direction:column;line-height:1.1;font-weight:700;color:var(--dsp-oxblood);font-family:var(--c-font-display)}
.auth-brand-text small{font-size:.78em;color:var(--ui-muted-foreground);font-family:var(--c-font);font-weight:600;letter-spacing:.04em;text-transform:uppercase}

/* Alerts use the kit callout look, full width of the form column. */
.auth-alerts{display:grid;gap:.6rem;width:100%;max-width:360px;margin:0 auto 1rem}
.auth-alerts [data-ui=callout]{width:100%;box-sizing:border-box}

/* Primary action: Despani crimson gloss. */
.ui-root .auth-form button[type=submit],
.ui-root .auth-form [data-ui=button].auth-full{
  background:linear-gradient(180deg,#b3191f,var(--dsp-oxblood));
  border-color:#5e0003;color:#fff;font-weight:600;
  box-shadow:inset 0 1px 0 #ffffff40,0 1px 2px #0004;
}
.ui-root .auth-form button[type=submit]:hover,
.ui-root .auth-form [data-ui=button].auth-full:hover{
  background:linear-gradient(180deg,#c42027,#8e1116);
}

/* Forgot-password is a real link, not a kit view switch. */
a.auth-link{
  all:unset;cursor:pointer;font-size:var(--ui-text-sm);color:var(--dsp-crimson);
  text-decoration:underline;text-underline-offset:3px;
  text-decoration-color:color-mix(in srgb,currentColor 35%,transparent);
}
a.auth-link:hover{text-decoration-color:currentColor}
a.auth-link:focus-visible{box-shadow:var(--ui-focus-shadow);border-radius:3px}

.auth-providers{margin-top:.15rem}
.auth-providers a[data-ui=button]{text-decoration:none;box-sizing:border-box}
.auth-or{display:flex;align-items:center;gap:.75rem;margin:.15rem 0;color:var(--ui-muted-foreground);font-size:12px;text-transform:uppercase;letter-spacing:.08em}
.auth-or::before,.auth-or::after{content:"";flex:1;height:1px;background:var(--ui-border)}

/* Cover: oxblood heritage panel, large existing Despani mark. */
.ui-root .auth-cover{
  min-height:100vh;
  background:
    radial-gradient(circle at 28% 24%,color-mix(in srgb,#b3191f 70%,transparent),transparent 55%),
    radial-gradient(circle at 80% 80%,color-mix(in srgb,#4a0002 65%,transparent),transparent 52%),
    linear-gradient(180deg,#881212 0%,#7d0001 58%,#191919 100%);
  display:grid;place-items:center;padding:2rem;
  position:relative;
}
.ui-root .auth-cover::after{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(180deg,#0000 40%,#0006 100%);
}
.auth-cover-inner{
  position:relative;z-index:1;text-align:center;color:#fffdf3;
  display:grid;justify-items:center;gap:1rem;
}
.auth-cover-inner img{
  width:min(280px,58%);height:auto;display:block;
  background:#fffdf3;border-radius:16px;padding:14px;
  box-shadow:0 18px 40px -16px #0008;
}
.auth-cover-inner p{
  margin:0;font-family:var(--c-font-display);font-size:clamp(1.6rem,3vw,2.2rem);
  font-weight:700;letter-spacing:.02em;color:#fffdf3;
  text-shadow:0 1px 2px #0008;
}

@media (max-width:760px){
  .ui-root .auth-page.auth-split{min-height:100vh}
  .ui-root .auth-col{max-width:none;padding:1.5rem 1.25rem 2rem}
  .ui-root .auth-cover{display:none}
}

.auth-logo{background:transparent}
.auth-logo-preview{
  margin:.15rem 0 0;font-size:12px;letter-spacing:.1em;text-transform:uppercase;
  font-family:var(--c-font);font-weight:600;color:#e8d49a;text-shadow:0 1px 2px #0008;
}

/* t723: right-panel treatments (?right=cross-emboss|cross-glass|cross-watermark|modern-*).
   Default cover (no data-right) keeps the cream plate. Treatments use cut-out marks, no white box. */
.auth-mark-wrap{display:grid;place-items:center;justify-self:center}
.auth-cover[data-right] .auth-cover-inner img{
  background:none;
  padding:0;
  border-radius:0;
  box-shadow:none;
}

/* (a) Embossed / debossed into the oxblood panel: soft well, highlight up-left, shadow down-right. */
.auth-cover[data-right$="-emboss"] .auth-mark-wrap{
  width:min(360px,70%);
  aspect-ratio:1;
  border-radius:50%;
  background:radial-gradient(circle at 50% 46%,rgba(0,0,0,.20) 0%,rgba(0,0,0,.10) 52%,transparent 74%);
  box-shadow:inset 0 10px 24px rgba(0,0,0,.28),inset 0 -6px 12px rgba(255,253,243,.05);
}
.auth-cover[data-right$="-emboss"] .auth-cover-inner img{
  width:min(280px,78%);
  filter:
    drop-shadow(-1px -1px 0 rgba(255,243,196,.28))
    drop-shadow(1px 1px 0 rgba(40,4,4,.45))
    drop-shadow(-2px -2px 1px rgba(255,248,224,.14))
    drop-shadow(3px 4px 2px rgba(0,0,0,.48))
    drop-shadow(0 12px 22px rgba(0,0,0,.35));
}

/* (b) Frosted glass disc, inner highlight, no flat white plate. */
.auth-cover[data-right$="-glass"] .auth-mark-wrap{
  width:min(340px,68%);
  aspect-ratio:1;
  border-radius:50%;
  background:
    radial-gradient(circle at 30% 22%,rgba(255,253,243,.30),rgba(255,248,230,.08) 42%,rgba(20,0,0,.18) 100%);
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,.42),
    inset 0 -28px 40px rgba(0,0,0,.20),
    inset 0 0 0 1px rgba(255,255,255,.16),
    0 18px 40px -12px rgba(0,0,0,.48);
  -webkit-backdrop-filter:blur(12px);
  backdrop-filter:blur(12px);
}
.auth-cover[data-right$="-glass"] .auth-cover-inner img{
  width:66%;
  filter:drop-shadow(0 2px 10px rgba(0,0,0,.38));
}

/* (c) Large faint watermark plus a crisp mark. */
.auth-cover[data-right$="-watermark"]{overflow:hidden}
.auth-cover[data-right$="-watermark"] .auth-wm{
  position:absolute;left:50%;top:48%;
  width:150%;height:150%;
  transform:translate(-50%,-50%);
  object-fit:contain;
  opacity:.12;
  pointer-events:none;
  filter:saturate(.9);
  z-index:0;
}
.auth-cover[data-right$="-watermark"] .auth-cover-inner img{
  width:min(240px,50%);
  filter:drop-shadow(0 8px 20px rgba(0,0,0,.42));
}


/* t725: portal header wordmark on the modern-emboss login preview.
   Identical font file (eurostile-geo-nus-bold.ttf, family "Despani Wordmark")
   and the same gold-gradient + 3D extrusion as .dm-word in despani-site.css.
   Sizes only are adjusted for the login left corner and the right cover. */
@font-face{font-family:"Despani Wordmark";src:url("../fonts/eurostile-geo-nus-bold.ttf") format("truetype");font-weight:700;font-display:swap}
.dm-word{font:700 46px/1 "Despani Wordmark","Noto Sans Georgian",Tahoma,sans-serif;letter-spacing:.04em;color:#fff7e6;
 background:linear-gradient(180deg,#ffffff 0%,#ffe9b0 45%,#d9a441 100%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;position:relative}
.dm-word::before{content:attr(data-text);position:absolute;inset:0;z-index:-1;-webkit-text-fill-color:#5e0003;
 text-shadow:1px 1px 0 #6d0004,2px 2px 0 #5e0003,3px 3px 0 #4f0002,4px 4px 0 #400002,5px 5px 0 #300001,6px 6px 0 #200000,8px 10px 12px #000c}
.auth-word-left{font-size:40px;display:inline-block;padding:0 12px 12px 0;line-height:1}
.auth-cover-inner p.auth-word-cover{
  font:700 64px/1 "Despani Wordmark","Noto Sans Georgian",Tahoma,sans-serif;
  letter-spacing:.04em;color:#fff7e6;text-shadow:none;
  display:block;margin:0;padding:0 0 14px;position:relative;
  background:linear-gradient(180deg,#ffffff 0%,#ffe9b0 45%,#d9a441 100%);
  -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;
}
/* Wrapper only — isolating .dm-word itself breaks background-clip:text (the gold face). */
.auth-word-left-wrap{position:relative;z-index:1;isolation:isolate;display:inline-block;overflow:visible}
.auth-brand{overflow:visible;align-items:center}
.auth-brand .auth-word-left-wrap{flex:none}
.auth-col,.auth-page{overflow:visible}
@media (max-width:760px){
  .auth-word-left{font-size:28px;padding:0 8px 8px 0}
}


/* t726/t727: top-left brand previews (?left=medallion|wordmark|pill|deboss|medallion-cross|pill-cross).
   Right panel treatments are unchanged. The default brand (no data-left) is unchanged. */
html.ui-root .auth-page.auth-split{overflow:visible}
.auth-left-plate{display:inline-flex;align-items:center;gap:10px;min-width:0;max-width:100%}
.auth-left-mark{flex:none;display:grid;place-items:center}
.auth-left-mark img{display:block;width:100%;height:auto;background:none;padding:0;border:0;border-radius:0;box-shadow:none}

/* (a) Small embossed Mark Modern medallion + portal 3D wordmark */
.auth-brand[data-left=medallion],
.auth-brand[data-left=medallion-cross]{align-items:center}
.auth-brand[data-left=medallion] .auth-left-mark,
.auth-brand[data-left=medallion-cross] .auth-left-mark{
  width:52px;height:52px;border-radius:50%;
  background:
    radial-gradient(circle at 50% 46%,rgba(0,0,0,.20) 0%,rgba(0,0,0,.10) 52%,transparent 74%),
    radial-gradient(circle at 50% 40%,#9a1a1a 0%,#7d0001 55%,#4a0808 100%);
  box-shadow:inset 0 3px 8px rgba(0,0,0,.30),inset 0 -2px 4px rgba(255,253,243,.06),0 2px 6px rgba(80,0,0,.22);
}
.auth-brand[data-left=medallion] .auth-left-mark img,
.auth-brand[data-left=medallion-cross] .auth-left-mark img{
  width:70%;
  filter:
    drop-shadow(-0.5px -0.5px 0 rgba(255,243,196,.30))
    drop-shadow(0.5px 0.5px 0 rgba(40,4,4,.45))
    drop-shadow(-1px -1px 0.5px rgba(255,248,224,.16))
    drop-shadow(1.5px 2px 1px rgba(0,0,0,.45));
}
.auth-brand[data-left=medallion] .auth-word-left,
.auth-brand[data-left=medallion-cross] .auth-word-left{font-size:32px;padding:0 10px 10px 0}

/* (b) Portal 3D wordmark only, no mark */
.auth-brand[data-left=wordmark] .auth-word-left{font-size:38px;padding:0 12px 12px 0}

/* (c) Compact oxblood pill with gold embossed mark + 3D wordmark */
.auth-brand[data-left=pill] .auth-left-plate,
.auth-brand[data-left=pill-cross] .auth-left-plate{
  gap:8px;
  padding:7px 16px 8px 7px;
  border-radius:999px;
  background:linear-gradient(180deg,#9a1a1a 0%,#7d0001 52%,#4a0808 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.20),inset 0 -1px 0 rgba(0,0,0,.25),0 2px 8px rgba(80,0,0,.28);
  overflow:visible;
}
.auth-brand[data-left=pill] .auth-left-mark,
.auth-brand[data-left=pill-cross] .auth-left-mark{
  width:36px;height:36px;border-radius:50%;
  background:radial-gradient(circle at 50% 40%,rgba(255,243,196,.08),transparent 60%);
}
.auth-brand[data-left=pill] .auth-left-mark img,
.auth-brand[data-left=pill-cross] .auth-left-mark img{
  width:78%;
  filter:
    drop-shadow(-0.5px -0.5px 0 rgba(255,243,196,.35))
    drop-shadow(1px 1.5px 1px rgba(0,0,0,.45));
}
.auth-brand[data-left=pill] .auth-word-left,
.auth-brand[data-left=pill-cross] .auth-word-left{font-size:26px;padding:0 8px 7px 0}

/* (d) Monochrome deboss of the mark into the cream field + 3D wordmark */
.auth-brand[data-left=deboss]{align-items:center}
.auth-brand[data-left=deboss] .auth-left-mark{
  width:48px;height:48px;
  background:#c4b196;
  -webkit-mask:url("../images/logos/modern-arms.png") center / contain no-repeat;
  mask:url("../images/logos/modern-arms.png") center / contain no-repeat;
  filter:
    drop-shadow(1px 1px 0 rgba(255,255,255,.92))
    drop-shadow(-1px -1.5px 0 rgba(90,30,20,.28));
}
.auth-brand[data-left=deboss] .auth-word-left{font-size:32px;padding:0 10px 10px 0}

@media (max-width:760px){
  .auth-brand[data-left=medallion] .auth-word-left,
  .auth-brand[data-left=medallion-cross] .auth-word-left,
  .auth-brand[data-left=deboss] .auth-word-left{font-size:24px;padding:0 8px 8px 0}
  .auth-brand[data-left=wordmark] .auth-word-left{font-size:28px}
  .auth-brand[data-left=pill] .auth-word-left,
  .auth-brand[data-left=pill-cross] .auth-word-left{font-size:22px}
  .auth-brand[data-left=medallion] .auth-left-mark,
  .auth-brand[data-left=medallion-cross] .auth-left-mark{width:42px;height:42px}
  .auth-brand[data-left=deboss] .auth-left-mark{width:40px;height:40px}
}

/* t727: Bolnisi cross fills the well a little larger than the circular borjgali */
.auth-brand[data-left=medallion-cross] .auth-left-mark img{width:76%}
.auth-brand[data-left=pill-cross] .auth-left-mark img{width:86%}


/* t728/t729: St George crest above the sign-in heading on the default login
   (pill-cross + modern-emboss). No plate, no white box. */
.auth-crest{display:flex;justify-content:center;align-items:center;margin:0 0 1.15rem;pointer-events:none}
.auth-crest img{
  display:block;
  height:72px;
  width:auto;
  background:none !important;
  padding:0 !important;
  border:0;
  border-radius:0;
  box-shadow:none;
}
@media (max-width:760px){
  .auth-crest img{height:64px}
}
