/* PIRI Mail — login (skin "piri", served only on mail.limousine-piri.eu).
   Design "Cinematic split" (18 Sep 2026). Fonts are the site's own files, served from this host
   (the webmail CSP allows fonts from 'self' only). */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/inter-400.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/inter-500.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/inter-600.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/inter-600.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/cormorant-500.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/cormorant-600.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/ibm-plex-arabic-400.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/ibm-plex-arabic-500.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/ibm-plex-arabic-600.woff2) format("woff2"); }

/* ───────────────────────── Tokens (from limousine-piri.com) ───────────────────────── */
:root {
  --bg: #0a0a0b;
  --bg-elevated: #101013;
  --surface: rgba(255,255,255,.028);
  --surface-2: rgba(255,255,255,.05);
  --line: rgba(255,255,255,.09);
  --line-strong: rgba(255,255,255,.16);
  --text: #f2f2f4;
  --text-soft: #d7d7db;
  --text-mute: #8f8f96;          /* 6.2:1 on --bg */
  --gold: #cbb488;               /* 9.8:1 on --bg */
  --gold-dim: #a8946a;           /* 6.7:1 on --bg */
  --gold-hi: #e0cda3;
  --platinum: #d7dbe1;
  --field: #131316;
  --field-edge: #6b6b72;         /* input boundary, 3.7:1 on --bg (WCAG 1.4.11) */
  --alert: #e8a39a;              /* 9.5:1 on --bg */
  --font-sans: "Inter", "Inter Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --font-ar: "IBM Plex Sans Arabic", "Geeza Pro", "Segoe UI", Tahoma, sans-serif;
  --font-ar-serif: "Amiri", "IBM Plex Sans Arabic", "Geeza Pro", serif;
  --radius: 4px;
  --ease: cubic-bezier(.22,1,.36,1);
  --pad-x: clamp(28px, 4.4vw, 68px);
}
/* Metric-matched fallback so the swap to Inter does not reflow the form. */
@font-face { font-family: "Inter Fallback"; src: local("Arial"); size-adjust: 107.4%; ascent-override: 90.2%; descent-override: 22.48%; line-gap-override: 0%; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; min-height: 100%; }
html body.task-login {
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.55 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}
::selection { background: var(--gold); color: var(--bg); }
a { color: inherit; }

/* ───────────────────────── Stage: cinematic split ───────────────────────── */
.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(460px, 1fr);
}

/* ── The scene (photo) ── */
.scene {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #050506;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(26px, 3.2vw, 48px) var(--pad-x) clamp(40px, 5.6vw, 80px);
}
.scene__media { position: absolute; inset: 0; z-index: -3; animation: lights 2.4s var(--ease) both; }
.scene__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 34% 58%;
  transform-origin: 38% 62%;
  filter: saturate(.8) contrast(1.06) brightness(.88);
  animation: drift 56s ease-in-out infinite alternate;
  will-change: transform;
}
/* Dusk grade: deep floor for the headline, a veil for the sky, and a fade into the panel. */
.scene::before {
  content: "";
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(90% 55% at 30% 42%, rgba(203,180,136,.10), rgba(203,180,136,0) 70%),
    linear-gradient(180deg,
      rgba(10,10,11,.66) 0%, rgba(10,10,11,.16) 20%, rgba(10,10,11,0) 36%,
      rgba(10,10,11,.38) 56%, rgba(10,10,11,.80) 72%, rgba(10,10,11,.95) 88%, #0a0a0b 100%),
    linear-gradient(var(--fade-dir, 90deg), rgba(10,10,11,0) 58%, rgba(10,10,11,.62) 88%, #0a0a0b 100%);
}
[dir="rtl"] .scene::before { --fade-dir: 270deg; }
/* Film grain — only on the photograph, never on the form. */
.scene::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  pointer-events: none;
  opacity: .07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.scene__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); border-radius: 2px; }
.brand img { width: 40px; height: 40px; object-fit: contain; filter: drop-shadow(0 2px 10px rgba(0,0,0,.45)); }
.brand__text { display: flex; flex-direction: column; line-height: 1; white-space: nowrap; }
.brand__name { font: 700 15px/1 var(--font-sans); letter-spacing: .34em; margin-inline-end: -.34em; }
.brand__sub { margin-top: 5px; font: 500 9px/1 var(--font-sans); letter-spacing: .16em; text-transform: uppercase; color: rgba(242,242,244,.74); }
.brand:focus-visible { outline: 2px solid var(--gold); outline-offset: 6px; }

.scene__slate {
  margin: 10px 0 0;
  font: 500 10.5px/1.5 var(--font-sans);
  letter-spacing: .24em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  color: rgba(242,242,244,.78);
  text-align: end;
  white-space: nowrap;
}
.scene__slate span { display: block; color: rgba(242,242,244,.58); letter-spacing: .2em; }

.scene__copy { max-width: 720px; }

.eyebrow {
  display: flex; align-items: center; gap: 14px;
  margin: 0 0 22px;
  font: 600 11px/1.4 var(--font-sans);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: ""; flex: none;
  width: 32px; height: 1px;
  background: currentColor; opacity: .8;
  transform-origin: var(--line-origin, left);
  animation: draw 1.4s var(--ease) .5s both;
}
[dir="rtl"] .eyebrow::before { --line-origin: right; }
.eyebrow__place { white-space: nowrap; }

.headline {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(40px, 4.8vw, 74px);
  line-height: 1.02;
  letter-spacing: -.012em;
  color: var(--text);
  text-shadow: 0 2px 30px rgba(0,0,0,.35);
  font-synthesis: none;
}
.headline > span { display: block; }
.headline em {
  display: block;
  font-style: italic;
  color: var(--gold);
  padding-bottom: .06em;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .headline em {
    background: linear-gradient(100deg, #e9dcbc 0%, #cbb488 45%, #b9a47a 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
    text-shadow: none;
  }
}
.subline {
  margin: 26px 0 0;
  max-width: 44ch;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-soft);
  text-wrap: pretty;
}

/* ── The panel (form) ── */
.panel {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 22px var(--pad-x) 30px;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(203,180,136,.045), rgba(203,180,136,0) 60%),
    var(--bg);
}
/* A quiet champagne seam where photo meets panel. */
.panel::before {
  content: "";
  position: absolute; inset-block: 12% 12%; inset-inline-start: 0;
  width: 1px;
  background: linear-gradient(180deg, rgba(203,180,136,0), rgba(203,180,136,.32) 50%, rgba(203,180,136,0));
}

.panel__top { display: flex; justify-content: flex-end; }

.lang { display: flex; align-items: center; margin-inline-end: -12px; font: 500 12px/1 var(--font-sans); letter-spacing: .08em; }
.lang a {
  position: relative;
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 12px;
  color: var(--text-mute);
  text-decoration: none;
  border-radius: 2px;
  transition: color .35s var(--ease);
}
.lang a + a::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 50%;
  width: 1px; height: 12px; margin-top: -6px;
  background: var(--line-strong);
}
.lang a::after {
  content: ""; position: absolute; inset-inline: 12px; bottom: 11px;
  height: 1px; background: var(--gold);
  transform: scaleX(0); transition: transform .5s var(--ease);
}
.lang a[aria-current="true"] { color: var(--gold); }
.lang a[aria-current="true"]::after { transform: scaleX(1); }
.lang a[lang="ar"] { font-family: var(--font-ar); font-size: 13.5px; letter-spacing: 0; }
.lang a:focus-visible { outline: 2px solid var(--gold); outline-offset: -6px; }

.panel__body {
  align-self: center;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  padding: 40px 0;
}

.kicker {
  margin: 0 0 14px;
  font: 600 11px/1.4 var(--font-sans);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold-dim);
}
.greet {
  margin: 0;
  font: 500 44px/1.08 var(--font-serif);
  letter-spacing: -.01em;
  color: var(--text);
}
.lede {
  margin: 12px 0 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-mute);
  text-wrap: pretty;
}

/* Roundcube message area (#message). Rendered server-side on failure, so it never shifts a painted layout. */
#message:empty { display: none; }
#message { margin-top: 26px; }
/* Neutral by default (Roundcube also posts "loading" / "notice" here); error + warning in rose. */
#message > div {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 13px 16px;
  border: 1px solid var(--line-strong);
  border-inline-start: 2px solid var(--gold-dim);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text-soft);
  font-size: 14px; line-height: 1.5;
}
#message > div + div { margin-top: 8px; }
#message > div::before {
  content: ""; flex: none; width: 16px; height: 16px; margin-top: 2px;
  background: var(--gold-dim);
  -webkit-mask: var(--icon-alert) center / contain no-repeat; mask: var(--icon-alert) center / contain no-repeat;
}
#message > .error, #message > .warning {
  border-color: rgba(232,163,154,.28);
  border-inline-start-color: var(--alert);
  background: rgba(232,163,154,.06);
}
#message > .error::before, #message > .warning::before { background: var(--alert); }
:root { --icon-alert: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5v5.5M12 16.5v.01'/%3E%3C/svg%3E"); }

/* ───────────────────────── Roundcube login form — styled, markup untouched ───────────────────────── */
#login-form { margin: 32px 0 0; }
#login-form table { width: 100%; border-collapse: collapse; border-spacing: 0; }
#login-form tbody, #login-form tr, #login-form td { display: block; }
#login-form tr + tr { margin-top: 22px; }
#login-form td { padding: 0; }
#login-form td.title { padding-bottom: 10px; }
#login-form td.title label {
  font: 600 11px/1.4 var(--font-sans);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-mute);
  transition: color .4s var(--ease);
  cursor: pointer;
}
#login-form tr:focus-within td.title label { color: var(--gold); }

#login-form input.form-control {
  display: block;
  width: 100%;
  height: 54px;
  margin: 0;
  padding: 0 16px;
  background: var(--field);
  color: var(--text);
  border: 1px solid var(--line);
  border-bottom-color: var(--field-edge);
  border-radius: var(--radius) var(--radius) 2px 2px;
  font: 400 16px/1.2 var(--font-sans);   /* 16px: no iOS zoom on focus */
  letter-spacing: .01em;
  caret-color: var(--gold);
  outline: 2px solid transparent;          /* becomes visible in forced-colors mode */
  outline-offset: 2px;
  -webkit-appearance: none; appearance: none;
  transition: border-color .4s var(--ease), background-color .4s var(--ease), box-shadow .4s var(--ease);
}
#login-form input.form-control::placeholder { color: var(--text-mute); opacity: 1; }
#login-form input[type="password"].form-control { letter-spacing: .18em; }
#login-form input[type="password"].form-control::placeholder { letter-spacing: .01em; }
@media (hover: hover) {
  #login-form input.form-control:hover { border-color: var(--line-strong); border-bottom-color: #8a8a91; }
}
#login-form input.form-control:focus {
  background: #16161a;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(203,180,136,.18), inset 0 -1px 0 var(--gold);
}
/* Browser autofill: keep it black and quiet. */
#login-form input.form-control:-webkit-autofill,
#login-form input.form-control:-webkit-autofill:hover {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0 100px var(--field) inset;
  transition: background-color 9999s 0s, border-color .4s var(--ease);
}
#login-form input.form-control:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 100px #16161a inset, 0 0 0 3px rgba(203,180,136,.18);
}
/* E-mail addresses and passwords are always left-to-right, even inside the Arabic page. */
[dir="rtl"] #login-form input.form-control { direction: ltr; text-align: right; }

#login-form p.formbuttons { margin: 32px 0 0; }
#rcmloginsubmit {
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  width: 100%; height: 54px;
  margin: 0; padding: 0 24px;
  border: 0; border-radius: var(--radius);
  background: var(--gold);
  color: #0a0a0b;
  font: 600 13px/1 var(--font-sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .5s var(--ease), background-color .4s var(--ease), box-shadow .5s var(--ease);
}
#rcmloginsubmit::after {
  content: ""; flex: none; width: 18px; height: 18px;
  background: currentColor;
  -webkit-mask: var(--icon-arrow) center / contain no-repeat; mask: var(--icon-arrow) center / contain no-repeat;
  transition: transform .5s var(--ease);
}
:root { --icon-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15M14 6.5 19.5 12 14 17.5'/%3E%3C/svg%3E"); }
[dir="rtl"] #rcmloginsubmit::after { transform: scaleX(-1); }
@media (hover: hover) {
  #rcmloginsubmit:hover { background: var(--gold-hi); transform: translateY(-1px); box-shadow: 0 14px 34px -16px rgba(203,180,136,.55); }
  #rcmloginsubmit:hover::after { transform: translateX(4px); }
  [dir="rtl"] #rcmloginsubmit:hover::after { transform: scaleX(-1) translateX(4px); }
}
#rcmloginsubmit:active { transform: translateY(0); }
#rcmloginsubmit:focus-visible { outline: 2px solid var(--platinum); outline-offset: 3px; }
/* Busy state while Roundcube posts (a hairline that travels, no spinner). */
#rcmloginsubmit::before {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, rgba(10,10,11,0), rgba(10,10,11,.7), rgba(10,10,11,0)) no-repeat;
  background-size: 38% 100%;
  opacity: 0;
}
#rcmloginsubmit.is-busy { pointer-events: none; }
#rcmloginsubmit.is-busy::before { opacity: 1; animation: sweep 1.15s linear infinite; }
#rcmloginsubmit.is-busy::after { opacity: .35; }

/* ── Footer ── */
.foot {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 4px;
  width: 100%; max-width: 380px; margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12px; line-height: 1.5;
  color: var(--text-mute);
}
.foot p { margin: 0; }
.foot__secure { display: inline-flex; align-items: center; gap: 9px; }
.foot__secure svg { flex: none; color: var(--gold-dim); }
.foot__dot { color: var(--line-strong); }
.foot__legal { letter-spacing: .02em; }

/* ───────────────────────── Motion ───────────────────────── */
@keyframes lights { from { opacity: 0; } to { opacity: 1; } }
@keyframes drift {
  from { transform: scale(1.06) translate3d(-1.2%, .4%, 0); }
  to   { transform: scale(1.13) translate3d(1.4%, -1.2%, 0); }
}
@keyframes rise { from { opacity: 0; transform: translate3d(0, 16px, 0); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes sweep { from { background-position: -60% 0; } to { background-position: 160% 0; } }

.in { animation: rise 1.2s var(--ease) both; animation-delay: var(--d, 0ms); }
.in-fade { animation: fade 1.4s var(--ease) both; animation-delay: var(--d, 0ms); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
  .scene__media img { animation: none !important; transform: scale(1.04); }
}

/* ───────────────────────── Arabic ───────────────────────── */
[lang="ar"] body.task-login { font-family: var(--font-ar); }
[lang="ar"] .eyebrow,
[lang="ar"] .kicker,
[lang="ar"] #login-form td.title label,
[lang="ar"] #rcmloginsubmit { letter-spacing: 0; text-transform: none; }
[lang="ar"] .eyebrow, [lang="ar"] .kicker { font-size: 13px; font-weight: 500; }
[lang="ar"] #login-form td.title label { font-size: 13px; font-weight: 500; }
[lang="ar"] #rcmloginsubmit { font-size: 15px; font-weight: 600; }
[lang="ar"] .headline { font-family: var(--font-ar-serif); font-weight: 400; font-size: clamp(38px, 4.3vw, 66px); line-height: 1.38; letter-spacing: 0; }
[lang="ar"] .headline em { font-style: normal; }
[lang="ar"] .greet { font-family: var(--font-ar-serif); font-weight: 400; font-size: 38px; line-height: 1.35; letter-spacing: 0; }
[lang="ar"] .subline { font-size: 16.5px; line-height: 1.85; }
[lang="ar"] .lede { font-size: 15px; line-height: 1.8; }
[lang="ar"] .foot { font-size: 12.5px; }
[lang="ar"] .scene__slate span { letter-spacing: 0; text-transform: none; font-family: var(--font-ar); font-size: 12px; }

/* ───────────────────────── Phone & tablet: a short photo band, the form stays above the fold ───────────────────────── */
@media (max-width: 899px) {
  :root { --pad-x: 20px; }
  .stage { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .scene {
    height: clamp(236px, 34svh, 340px);
    padding: max(14px, env(safe-area-inset-top)) var(--pad-x) 18px;
    gap: 12px;
  }
  .scene__media img { object-position: 42% 62%; }
  .scene::before {
    background:
      linear-gradient(180deg,
        rgba(10,10,11,.70) 0%, rgba(10,10,11,.12) 30%, rgba(10,10,11,.10) 44%,
        rgba(10,10,11,.62) 68%, rgba(10,10,11,.92) 86%, #0a0a0b 100%);
  }
  .scene__slate, .subline { display: none; }
  .brand img { width: 34px; height: 34px; }
  .brand__name { font-size: 14px; }
  .eyebrow { margin-bottom: 12px; font-size: 10px; letter-spacing: .24em; }
  .eyebrow::before { width: 22px; }
  .eyebrow { white-space: nowrap; }
  .eyebrow__place { display: none; }   /* the band keeps one quiet line */
  .headline { font-size: clamp(29px, 8.2vw, 46px); line-height: 1.04; }
  [lang="ar"] .headline { font-size: clamp(27px, 7.4vw, 42px); line-height: 1.34; }

  .panel { position: static; min-height: 0; padding: 0 var(--pad-x) max(22px, env(safe-area-inset-bottom)); background: var(--bg); }
  .panel::before { display: none; }
  /* The language switch floats over the photo band. */
  .panel__top { position: absolute; top: max(10px, env(safe-area-inset-top)); inset-inline-end: 8px; z-index: 5; }
  .lang { margin: 0; color: var(--platinum); }
  .lang a { color: rgba(242,242,244,.8); padding: 0 10px; }
  .lang a::after { inset-inline: 10px; }
  .lang a[aria-current="true"] { color: var(--gold); }

  .panel__body { align-self: start; max-width: 460px; padding: 22px 0 34px; }
  .kicker { margin-bottom: 8px; }
  .greet { font-size: 34px; }
  [lang="ar"] .greet { font-size: 30px; }
  .lede { margin-top: 6px; font-size: 14px; }
  #message { margin-top: 20px; }
  #login-form { margin-top: 24px; }
  #login-form tr + tr { margin-top: 18px; }
  #login-form td.title { padding-bottom: 8px; }
  #login-form input.form-control, #rcmloginsubmit { height: 52px; }
  #login-form p.formbuttons { margin-top: 26px; }
  .foot { max-width: 460px; padding-top: 18px; }
}
@media (max-width: 420px) {
  .brand__sub { display: none; }
}
/* The photo slate only when the scene is wide enough to hold it beside the brand. */
@media (max-width: 1179px) { .scene__slate { display: none; } }
/* Short phones (SE, landscape-ish): a slimmer band so the button still sits above the fold. */
@media (max-width: 899px) and (max-height: 720px) {
  .scene { height: clamp(184px, 29svh, 236px); }
  .panel__body { padding-top: 16px; }
  .greet { font-size: 30px; }
  [lang="ar"] .greet { font-size: 27px; }
  #login-form input.form-control, #rcmloginsubmit { height: 50px; }
  #login-form p.formbuttons { margin-top: 22px; }
}
@media (min-width: 900px) and (max-height: 700px) {
  .panel__body { padding: 16px 0; }
  .greet { font-size: 38px; }
}

/* Windows High Contrast / forced colours */
@media (forced-colors: active) {
  #rcmloginsubmit { border: 1px solid ButtonText; }
  #rcmloginsubmit::after, #message > div::before { background: ButtonText; }
  #login-form input.form-control:focus { outline-color: Highlight; }
  .scene::before, .scene::after { display: none; }
}

/* ───────────────────────── Roundcube / Elastic integration ───────────────────────── */
/* Only the italic line may be slanted by the browser (the site ships upright Cormorant only). */
.headline em { font-synthesis: style; }
html body.task-login { background: var(--bg) !important; color: var(--text); overflow-x: hidden; }
body.task-login #layout { display: block !important; height: auto !important; min-height: 100vh; overflow: visible !important; background: var(--bg) !important; }
#layout-content.piri-login {
  display: block !important; position: static !important; width: 100% !important; max-width: none !important;
  height: auto !important; min-height: 100vh; margin: 0 !important; padding: 0 !important;
  background: none !important; border: 0 !important; box-shadow: none !important; overflow: visible !important;
}
.piri-login .one-login { margin: 18px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--text-mute); letter-spacing: .01em; }
/* Elastic's ui.js hides the labels and prepends icons: undo both, the design labels every field. */
#login-form { margin: 32px 0 0 !important; padding: 0 !important; background: none !important; }
#login-form table, #login-form table.table { margin: 0; background: none; }
#login-form tr, #login-form tr.form-group.row { display: block !important; margin: 0; padding: 0; border: 0; }
#login-form tr + tr { margin-top: 22px !important; }
#login-form td, #login-form table.table td { display: block !important; padding: 0 !important; border: 0 !important; background: none !important; width: auto !important; }
#login-form td.title { display: block !important; padding-bottom: 10px !important; text-align: start; }
#login-form td.input.input-group { display: block !important; }
#login-form .input-group-prepend, #login-form .input-group-append, #login-form .input-group-text { display: none !important; }
#login-form input.form-control { box-shadow: none; }
#login-form .input-group > input.form-control { width: 100% !important; flex: none; border-radius: var(--radius) var(--radius) 2px 2px !important; }
#rcmloginsubmit.btn, #rcmloginsubmit.btn-primary, #rcmloginsubmit.btn-lg { border: 0 !important; border-radius: var(--radius) !important; background: var(--gold) !important; color: #0a0a0b !important; box-shadow: none; width: 100%; }
@media (hover: hover) { #rcmloginsubmit.btn:hover { background: var(--gold-hi) !important; } }
#rcmloginsubmit.btn:focus { box-shadow: none; }
#rcmloginsubmit.btn:focus-visible { outline: 2px solid var(--platinum) !important; outline-offset: 3px; }
/* Elastic's toasts (login errors) in the house style */
#messagestack { z-index: 50; }
#messagestack > div {
  background: #131316 !important; color: var(--text-soft) !important;
  border: 1px solid var(--line-strong) !important; border-inline-start: 2px solid var(--gold-dim) !important;
  border-radius: var(--radius) !important; box-shadow: 0 18px 40px -18px rgba(0,0,0,.7) !important;
  font: 400 14px/1.5 var(--font-sans);
}
#messagestack > div.error, #messagestack > div.warning { border-inline-start-color: var(--alert) !important; background: #1a1314 !important; }
[lang="ar"] #messagestack > div { font-family: var(--font-ar); }
.noscriptwarning { color: var(--text-soft); text-align: center; padding: 16px; }
/* Elastic positions its own login form (top: 20vh; max-width: 320px; centred text) */
#login-form { position: static !important; top: auto !important; width: 100% !important; max-width: none !important; }
#layout-content.piri-login, .piri-login .panel__body, .piri-login .scene__copy { text-align: start !important; }
.piri-login .scene__slate { text-align: end !important; }
#login-form table, #login-form table.table { width: 100% !important; max-width: none !important; }
