/* The server-rendered pages: sign-in, the MFA wizard and the forced password
 * change. One file, because they are the same page with different middles.
 *
 * base.html loads it and the console does not. That is the whole separation,
 * and it is load-time rather than a naming convention because the rules below
 * are bare element selectors -- `main`, `button`, `input` -- sized for a 370px
 * card. When the console loaded this file too, its <main> was centred like a
 * card and every filter input was full-width. The palette both surfaces do
 * share is tokens.css.
 */

:root {
  /* Auth-page layout, not palette -- nothing else has a page background or a
     single fixed-width column. */
  --page-bg: linear-gradient(180deg, #eef6fc 0%, #f7fbfe 55%, #eaf4fb 100%);
  --panel-width: 370px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Open Sans", system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 13px;
  color: var(--G600);
  background: var(--page-bg);
}

/* Page chrome */

header {
  background: linear-gradient(180deg, var(--Cob500), var(--Cob600));
  color: #fff;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
}
/* The License Server mark, white on the cobalt bar. Its viewBox is 512x420,
 * so the height is what to set and the width follows. */
header .logo { height: 30px; width: auto; display: block; }
header .name { font-size: 17px; font-weight: 600; }

main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

footer {
  padding: 14px 20px;
  text-align: center;
  color: var(--G500);
  font-size: 11.5px;
}

/* The single centred column every one of these pages is */

.panel { width: 100%; max-width: var(--panel-width); }

h1 { margin: 0 0 14px; font-size: 17px; font-weight: 600; color: var(--G700); }

/* Forms */

label { display: block; font-size: 14px; color: var(--G600); margin: 0 0 6px; }

input[type=text],
input[type=password],
input[type=number] {
  width: 100%;
  padding: 9px 10px;
  font: inherit;
  font-size: 14px;
  border: 1px solid var(--G300);
  border-radius: 1px;
  background: #fff;
  color: var(--G600);
  margin-bottom: 18px;
}
input:focus { outline: 2px solid var(--Cob500); outline-offset: -1px; }

button {
  width: 100%;
  min-height: 38px;
  font: inherit;
  font-size: 15px;
  border: 1px solid var(--Cob500);
  border-radius: 1px;
  background: var(--Cob700);
  color: #fff;
  cursor: pointer;
}
button:hover { background: var(--Cob600); }
button:focus-visible { outline: 2px solid var(--Cob500); outline-offset: 2px; }

button.secondary {
  background: #fff;
  color: var(--Cob700);
  margin-top: 10px;
  font-size: 13.5px;
  min-height: 34px;
}
button.secondary:hover { background: #f0f6fb; }

/* Messages */

.prompt { margin: 0 0 16px; color: var(--G500); font-size: 12.5px; line-height: 1.6; }

.notice {
  background: var(--Y50);
  border: 1px solid var(--Y100);
  border-left: 3px solid var(--Y600);
  padding: 10px 12px;
  margin: 0 0 16px;
  font-size: 12.5px;
  line-height: 1.6;
}

.errors {
  background: var(--R50);
  border: 1px solid var(--R150);
  color: #b0322f;
  padding: 9px 11px;
  margin: 0 0 16px;
  font-size: 12.5px;
  border-radius: 1px;
}
.errors p { margin: 0; }
.errors p + p { margin-top: 5px; }
.errors ul { margin: 0; padding-left: 18px; }

.help, .helptext {
  display: block;
  color: var(--G500);
  font-size: 11.5px;
  line-height: 1.6;
  margin: -12px 0 18px;
}

.linkout {
  display: block;
  text-align: center;
  margin-top: 14px;
  color: var(--Cob500);
  text-decoration: none;
  font-size: 13px;
}
.linkout:hover { text-decoration: underline; }

/* The other door */

/* A rule with the word sitting in the gap, so the two sign-in methods read as
   alternatives rather than as a form with a stray button under it. */
.orbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
  color: var(--text-light);
  font-size: 11.5px;
}
.orbar::before,
.orbar::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--G250);
}

/* An anchor and not a button: it leaves for the provider, and a GET is what
   leaving is. Styled as button.secondary, which it stands in for. */
.button-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--Cob500);
  border-radius: 1px;
  background: #fff;
  color: var(--Cob700);
  font-size: 13.5px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.button-link:hover { background: #f0f6fb; }

/* Sits with the label rather than pinned to the edge: the pair is the label,
   and a mark parked in the corner reads as a second control. */
.idp-mark {
  flex: none;
  margin-right: 8px;
  color: var(--Cob500);
}
.button-link:focus-visible { outline: 2px solid var(--Cob500); outline-offset: 2px; }
