/* The Kanōn sign-in: the new look of every sign-in page (the cloud Dashboard sign-in included).
   Left: the logo, a greeting and the time. Right: one glass card. Loaded after signin.css; only the look changes. */

@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 500 800; font-display: swap; src: url("../fonts/bricolage-grotesque.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/figtree.woff2") format("woff2"); }

body.sx {
  --btn1: #ff9a4d; --btn2: #f5701c; --btntx: #1a0d03; --link: #ffb27a;
  --field: rgba(255, 255, 255, .06); --line: rgba(255, 255, 255, .16); --ph: #9aa5bd;
  font-family: "Figtree", Inter, Cairo, ui-sans-serif, system-ui, sans-serif;
}
[dir="rtl"] body.sx { font-family: "Figtree", Cairo, ui-sans-serif, system-ui, sans-serif; }

/* left: logo, greeting, time */
.sx-logo { width: min(420px, calc(100% - 20px), 52vh); filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .45)); }
.kx-hero { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; width: min(420px, 100%); margin-top: clamp(6px, 3vh, 30px); text-align: start; }
.kx-hero span { font: 600 clamp(15px, 2.4vh, 20px) "Figtree", sans-serif; color: #e6d9c8; opacity: .9; }
.kx-hero b { font: 800 clamp(56px, 13vh, 112px)/1 "Bricolage Grotesque", sans-serif; letter-spacing: -.03em; color: #fff; text-shadow: 0 6px 40px rgba(0, 0, 0, .45); font-variant-numeric: tabular-nums; }
.kx-hero small { font: 500 clamp(13px, 2vh, 16px) "Figtree", sans-serif; color: #d6cbbb; opacity: .85; }
.sx-clock { display: none; }   /* the small clock top right: the big one on the left replaces it */

/* right: one glass card */
.sx-form {
  width: min(440px, 100%); padding: clamp(18px, 3.4vh, 32px); border-radius: 24px;
  background: linear-gradient(180deg, rgba(34, 24, 40, .62), rgba(18, 12, 26, .66));
  -webkit-backdrop-filter: blur(22px) saturate(140%); backdrop-filter: blur(22px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 40px 80px -36px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.sx-form h1 { font: 800 clamp(22px, 4vh, 30px)/1.15 "Bricolage Grotesque", Cairo, sans-serif; letter-spacing: -.02em; color: #fff; }
.sx-form .sx-sub { color: #cfc4d6; font-size: 14px; }
.sx-form label { font-weight: 700; font-size: 13px; color: #efe6f3; }
.sx-form .lg-field, .sx-in, .sx-box { border-radius: 14px; background: var(--field); border-color: var(--line); }
.sx-form .lg-field:focus, .sx-in:focus, .sx-box:focus-within { border-color: var(--btn2); box-shadow: 0 0 0 3px rgba(245, 112, 28, .28); }
.sx-form .gold-btn, .sx-go {
  border-radius: 14px; background: linear-gradient(180deg, var(--btn1), var(--btn2)); color: var(--btntx);
  font: 800 15px "Bricolage Grotesque", Cairo, sans-serif; letter-spacing: .02em; box-shadow: 0 14px 28px -16px var(--btn2);
}
.sx-form .lg-forgot a, .sx-form .lg-forgot summary { color: var(--link); }
.sx-foot-note { color: #b9afc4; }

/* the small pills around: the same soft glass */
.sx-hub, .sx-cu, .sx-pb { border-radius: 99px; }
.sx-cu { border-color: rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06); color: #f1ebf5; }

@media (max-width: 900px) { .kx-hero { align-items: center; text-align: center; } }

/* one calm field: a flat fill, one thin border, one accent border when it has focus; no glow, no ring, no browser autofill colour */
.sx-form .lg-field, .sx-in, .sx-box { background: rgba(255, 255, 255, .04); }
.sx-form .lg-field:focus, .sx-in:focus, .sx-box:focus-within { border-color: var(--btn2); box-shadow: none; background: rgba(255, 255, 255, .06); }
.sx-form input:not([type=checkbox]), .sx-form input:not([type=checkbox]):focus, .sx-box input, .sx-box input:focus { outline: none; box-shadow: none; background-color: transparent; color: #fff; -webkit-text-fill-color: #fff; caret-color: var(--btn1); }
.sx-form input:-webkit-autofill, .sx-form input:-webkit-autofill:hover, .sx-form input:-webkit-autofill:focus { -webkit-text-fill-color: #fff; caret-color: var(--btn1); transition: background-color 99999s ease-in-out 0s; box-shadow: 0 0 0 1000px transparent inset; }

/* ---- short screens: the server / cloud / PC / terminal / branch rows sit two by two so they never run into the clock above or the footer below ---- */
@media (max-height: 900px) {
  .sx-mid .sx-info { grid-template-columns: 1fr 1fr; width: min(440px, 100%); gap: 8px; }
  .sx-mid .sx-info .r { padding: 8px 12px; gap: 8px; min-width: 0; }
  .sx-mid .sx-info .r b { font-size: 13px; }
  .sx-mid .sx-info .end { font-size: 12px; }
  .sx-mid .sx-info .r:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .kx-hero b { font-size: clamp(44px, 10vh, 92px); }
}
@media (max-height: 620px) { .sx-mid .sx-info { display: none; } }

/* DAY MODE of every sign-in page: a light scene (the animated background turned light), dark ink, white glass, the dark logo */
html.lg-day body.sx { --tx: #14213d; --tx2: #46536e; --field: rgba(255, 255, 255, .78); --fieldtx: #14213d; --ph: #6b778f; --line: rgba(20, 33, 61, .2); --link: #b4540a; color: #14213d; }
html.lg-day body.sx .sx-bg { background: linear-gradient(180deg, #a9cdf0, #e8f0fb 70%, #f8e4d4); }   /* day: the designs are drawn again in daylight (login-bg.js), so nothing tints them */
html.lg-day body.sx .sx-bg::before, html.lg-day body.sx .sx-bg::after { display: none; }
html.lg-day body.sx .sx-logo { content: url("../img/kanon-logo-onLight.svg"); filter: drop-shadow(0 10px 24px rgba(20, 33, 61, .16)); }
html.lg-day body.sx .sx-art, html.lg-day body.sx .sx-mod b { color: #14213d; }
html.lg-day body.sx .kx-hero span, html.lg-day body.sx .kx-hero small { color: #46536e; opacity: 1; }
html.lg-day body.sx .kx-hero b { color: #14213d; text-shadow: none; }
html.lg-day body.sx .sx-st.on { color: #0b6b3a; } html.lg-day body.sx .sx-st.off { color: #b42318; }
html.lg-day body.sx .sx-form { background: linear-gradient(180deg, rgba(255, 255, 255, .86), rgba(255, 255, 255, .7)); border-color: rgba(20, 33, 61, .12); box-shadow: 0 36px 70px -36px rgba(20, 33, 61, .5), inset 0 1px 0 #fff; }
html.lg-day body.sx .sx-form h1, html.lg-day body.sx .sx-form label { color: #14213d; }
html.lg-day body.sx .sx-form .sx-sub, html.lg-day body.sx .sx-foot-note, html.lg-day body.sx .sx-or, html.lg-day body.sx .sx-row, html.lg-day body.sx .sx-row label { color: #46536e; }
html.lg-day body.sx .sx-form .lg-field, html.lg-day body.sx .sx-in, html.lg-day body.sx .sx-box { background: rgba(255, 255, 255, .85); }
html.lg-day body.sx .sx-form input:not([type=checkbox]), html.lg-day body.sx .sx-form input:not([type=checkbox]):focus, html.lg-day body.sx .sx-box input, html.lg-day body.sx .sx-box input:focus { color: #14213d; -webkit-text-fill-color: #14213d; }
html.lg-day body.sx .sx-disp { color: #14213d; }
html.lg-day body.sx .sx-key { background: rgba(255, 255, 255, .9); color: #14213d; box-shadow: 0 1px 0 #fff inset, 0 6px 14px -10px rgba(20, 33, 61, .5); }
html.lg-day body.sx .sx-key.fn { color: #46536e; }
html.lg-day body.sx .sx-alt a, html.lg-day body.sx .sx-alt button, html.lg-day body.sx .sx-quick button { color: #14213d; background: rgba(255, 255, 255, .7); }
html.lg-day body.sx .sx-info b { color: #14213d; } html.lg-day body.sx .sx-info small { color: #5a6680; }
html.lg-day body.sx .sx-info .on { color: #0b6b3a; } html.lg-day body.sx .sx-info .off { color: #b42318; }
html.lg-day body.sx .sx-cu { background: rgba(255, 255, 255, .75); color: #14213d; border-color: rgba(20, 33, 61, .18); }
html.lg-day body.sx .sx-msg.bad, html.lg-day body.sx .sx-prompt.error, html.lg-day body.sx .prompt.error { color: #b42318 !important; }
html.lg-day body.sx .sx-cpop { background: rgba(255, 255, 255, .96); }
html.lg-day body.sx .sx-cpop b { color: #46536e; } html.lg-day body.sx .sx-cpop a { color: #14213d; }

/* the status block: the server, and under it the cloud */
.sx-mid .sx-info { grid-template-columns: 1fr !important; width: min(380px, 100%); gap: 8px; }
.sx-mid .sx-info .r:last-child:nth-child(odd) { grid-column: auto; }
html.lg-day body.sx .sx-info .r { background: rgba(255, 255, 255, .72); border-color: rgba(20, 33, 61, .14); }
/* the support card (Contact us): the same as on the landing page */
body.sx .sx-cpop { width: min(344px, calc(100vw - 32px)); padding: 18px; gap: 4px; border-radius: 22px; border: 1px solid rgba(255, 255, 255, .16); background: color-mix(in srgb, #0c1224 94%, transparent); -webkit-backdrop-filter: blur(22px) saturate(1.3); backdrop-filter: blur(22px) saturate(1.3); box-shadow: 0 28px 60px -24px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .14); }
body.sx .sx-cpop b { display: flex; align-items: center; gap: 8px; padding: 0 4px 12px; margin-bottom: 4px; border-bottom: 1px solid rgba(255, 255, 255, .16); font-size: 12px; font-weight: 700; letter-spacing: .09em; color: #c9bba8; }
body.sx .sx-cpop a:not(.sx-wa) { gap: 12px; padding: 7px 8px; border-radius: 14px; font-size: 15px; font-weight: 500; color: #f6efe5; transition: background .18s; }
body.sx .sx-cpop a:not(.sx-wa):hover { background: rgba(255, 255, 255, .07); color: #f6efe5; }
body.sx .sx-cpop a:not(.sx-wa) .ms { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; font-size: 19px; color: #ffb27a; background: rgba(255, 178, 122, .13); border: 1px solid rgba(255, 178, 122, .28); }
body.sx .sx-cpop a:not(.sx-wa) > span:last-child { min-width: 0; overflow-wrap: anywhere; }
body.sx .sx-cpop .sx-wa { margin-top: 10px; justify-content: center; gap: 8px; height: 46px; border-radius: 99px; font-size: 15px; font-weight: 700; color: #06210f; background: #25d366; box-shadow: 0 10px 24px -12px #25d366, inset 0 1px 0 rgba(255, 255, 255, .5); transition: filter .18s, transform .18s; }
body.sx .sx-cpop .sx-wa .ms { font-size: 20px; color: inherit; }
body.sx .sx-cpop .sx-wa:hover { filter: brightness(1.06); color: #06210f; transform: translateY(-1px); }
html.lg-day body.sx .sx-cpop { background: rgba(255, 255, 255, .96); border-color: rgba(20, 33, 61, .14); box-shadow: 0 28px 60px -28px rgba(20, 33, 61, .5), inset 0 1px 0 #fff; }
html.lg-day body.sx .sx-cpop b { border-color: rgba(20, 33, 61, .14); }
html.lg-day body.sx .sx-cpop a:not(.sx-wa):hover { background: rgba(20, 33, 61, .06); }
html.lg-day body.sx .sx-cpop a:not(.sx-wa) .ms { color: #b4540a; background: rgba(224, 112, 20, .1); border-color: rgba(224, 112, 20, .3); }
html.lg-day .sx-tbtn.danger { color: #b42318; background: rgba(255, 255, 255, .78); border-color: rgba(180, 35, 24, .4); }
html.lg-day body.sx .kx-hero span, html.lg-day body.sx .kx-hero small { color: #14213d; text-shadow: 0 0 14px rgba(255, 255, 255, .9), 0 0 4px rgba(255, 255, 255, .8); }
html.lg-day body.sx .kx-hero b { text-shadow: 0 0 26px rgba(255, 255, 255, .85); }
