/* Standalone copy of the cms4 sign-in screen: its tokens, base and screen styles flattened into one file.
   Lives in admin2.0/css/; its fonts and background sit in admin2.0/fonts/ and admin2.0/img/, found by relative path. */

@font-face {
  font-family: Rubik; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url(../fonts/rubik-latin-variable.woff2) format("woff2-variations"), url(../fonts/rubik-latin-variable.woff2) format("woff2");
}
@font-face {
  font-family: "Rubik One"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/rubik-one-latin-400.woff2) format("woff2");
}

:root {
  --c-slate-950: #182122;
  --c-seed-page: #F3F3F6;
  --c-plum-700: #5B5155;
  --c-teal-600: #188E85;
  --c-peach-400: #E19278;
  --c-shadow-rgb: 0 0 0;

  --font-sans: Rubik, sans-serif;
  --font-display: 'Rubik One', Rubik, sans-serif;

  --ground: url(../img/login-v3-ground.jpg);
}

*, *::before, *::after { box-sizing: border-box; }

.si-body {
  min-height: 100vh; margin: 0;
  background: var(--c-slate-950) var(--ground) center / cover no-repeat;
  color: var(--c-seed-page);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

.si-wrap {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px;
  padding: 60px 120px 158px;
}

/* The heading above the card, multiplied into the wood. */
.si-welcome {
  margin: 0; text-align: center;
  font: 400 24px / 1.2 var(--font-display); color: var(--c-plum-700); mix-blend-mode: multiply;
}

.si-card {
  width: 100%; max-width: 1200px;
  display: flex; align-items: center; gap: 60px;
  padding: 30px 60px 30px 30px;
  border-radius: 30px; background: var(--c-slate-950);
  filter: drop-shadow(6px 8px 5px rgb(var(--c-shadow-rgb) / .35));
}

/* The teal note panel. */
.si-hello {
  flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; align-items: flex-start; gap: 30px;
  padding: 30px; border-radius: 20px; background: var(--c-teal-600);
}
.si-hello__mark {
  box-sizing: content-box; padding: 9px 11px 9px 12px;
  border-radius: 10px; background: var(--c-slate-950);
  box-shadow: 0 1.5px .75px rgb(var(--c-shadow-rgb) / .25);
}
.si-hello__lead {
  margin: 0; display: flex; flex-direction: column; gap: 8px;
  font: 400 60px / 1 var(--font-display); letter-spacing: .8px; text-transform: uppercase;
}
.si-hello__small { font-size: 35px; }
.si-hello__note { margin: -22px 0 0; font: 500 18px / 1.6 var(--font-sans); }
.si-hello__contact {
  padding: 0 10px; border-radius: 15px; min-width: 119px; text-align: center;
  background: var(--c-seed-page); color: var(--c-slate-950);
  font: 700 15px / 24px var(--font-sans); text-decoration: none;
}
.si-hello__contact:hover, .si-hello__contact:focus-visible { color: var(--c-teal-600); }

/* The form. */
.si-form { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.si-form__title {
  margin: 0; font: 400 16px / 1.6 var(--font-display); letter-spacing: .32px; text-transform: uppercase;
  color: var(--c-seed-page);
}
/* Instructions under a form title, as on the password-reset pages. */
.si-copy { margin: 0 0 7px; font: 400 13px / 1.6 var(--font-sans); letter-spacing: .26px; }
.si-copy a { color: inherit; }
.si-copy a:hover, .si-copy a:focus-visible { color: var(--c-peach-400); }
/* The acceptable use statement under the sign-in form: kept for compliance, set small so the form stays the focus. */
.si-fine { margin: 22px 0 0; max-width: 60ch; font: 400 11px / 1.5 var(--font-sans); letter-spacing: .2px; opacity: .75; }
.si-fine strong { font-weight: 600; }
.si-fields { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }
.si-field {
  width: 100%; padding: 4px 12px; border: 0; border-radius: 2px;
  background: var(--c-seed-page); color: var(--c-slate-950);
  font: 400 16px / 1.6 var(--font-sans); letter-spacing: .32px;
}
.si-field::placeholder { color: var(--c-plum-700); opacity: 1; }
.si-field:focus-visible { outline: 2px solid var(--c-peach-400); outline-offset: 2px; }


.si-go {
  padding: 4px 8px; border: 0; border-radius: 2px; cursor: pointer;
  background: var(--c-peach-400); color: var(--c-slate-950);
  font: 700 16px / 1.6 var(--font-sans); letter-spacing: .32px; text-transform: uppercase;
}
/* The same button drawn as a link, for the reset pages that only send people onward. */
a.si-go { display: inline-block; text-decoration: none; }
.si-go:hover { filter: brightness(1.06); }
.si-go:focus-visible { outline: 2px solid var(--c-seed-page); outline-offset: 2px; }

/* The password rules on the reset page, and its Save / Cancel pair. Cancel is outlined so Save reads as the main action. */
.si-rules { padding-left: 8px; font: 400 12px / 1.5 var(--font-sans); letter-spacing: .24px; }
.si-rules strong { font-weight: 600; }
.si-rules ul { margin: 4px 0 0; padding-left: 18px; }
.si-actions { display: flex; gap: 10px; }
.si-go--quiet { background: transparent; color: var(--c-seed-page); box-shadow: inset 0 0 0 1px var(--c-seed-page); }

.si-forgot { color: var(--c-seed-page); font: 400 14px / 1.6 var(--font-sans); letter-spacing: .28px; text-decoration: underline; }
.si-forgot:hover, .si-forgot:focus-visible { color: var(--c-peach-400); }

/* The warning box: the PHP fills it after a failed sign-in, the page script when an email is typed. Hidden while empty. */
.si-said { margin: 0; padding: 6px 10px; border-radius: 2px; font-size: 14px; line-height: 1.4; }
.si-said--warn { background: var(--c-peach-400); color: var(--c-slate-950); }

/* Labels kept for screen readers; the placeholder is what everyone else reads. */
.si-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* Narrower windows: the note stacks above the form, and the headline shrinks. */
@media (max-width: 1023px) {
  .si-wrap { padding: 40px 24px; }
  .si-card { flex-direction: column; align-items: stretch; gap: 30px; padding: 20px; }
  .si-hello__lead { font-size: 35px; }
  .si-hello__small { font-size: 22px; }
}
@media (max-width: 520px) {
  .si-wrap { padding: 24px 16px; }
  .si-hello { padding: 20px; gap: 20px; }
  .si-hello__lead { font-size: 32px; }
  .si-hello__note { margin-top: -12px; font-size: 16px; }
}

.si-said:empty { display: none; }
.si-said .cms_warn { margin: 0; }
