html {
  --blue: #1483f3;
  --dark-blue: #0962ab;
  --gray: #858585;
  --red: #f93916;
  --sand: #fcf4ed;
  --dark-sand: #f8e4d3;
  --sw1: #fabc1c;
  --sw2: #ff833e;
  --sw3: #148ef3;
  --sw4: #0dbdf6;
}

@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("/fonts/open-sans-v18-latin-regular.woff2") format("woff2");
}

@font-face {
  font-family: "Open Sans";
  font-style: italic;
  font-weight: 400;
  font-display: block;
  src: url("/fonts/open-sans-v18-latin-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 600;
  font-display: block;
  src: url("/fonts/open-sans-v18-latin-600.woff2") format("woff2");
}

body {
  background-color: #fff;
  padding: 0;
  margin: 0;
  font:
    normal 400 14px "Open Sans",
    sans-serif;
  color: #383838;
}

h1 {
  font-weight: 600;
  font-size: 28px;
  text-align: center;
  margin: 0 0 20px;
}

h1 small {
  display: block;
  font-size: 16px;
}

main {
  display: flex;
  flex-flow: column;
  height: 100vh;
}

header {
  display: flex;
  padding: 0 32px;
  height: 70px;
  align-items: center;
}

section {
  flex-grow: 1;
  background: url("/images/waves.svg") right bottom / auto min(75vh, 90vw)
    no-repeat var(--sand);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#modal {
  padding: 48px 48px 36px;
  background-color: white;
  border-radius: 10px;
  box-shadow: rgba(0, 0, 0, 0.1) 3px 3px 20px 0px;
  width: 520px;
  margin: 0 0 150px 0;
  opacity: 1;
  transition: opacity 1s;
}

#modal.loading {
  opacity: 0;
}

h1 span.client {
  color: var(--blue);
}

form {
  margin: 0;
  padding: 0;
}

.field {
  padding: 0;
  margin: 0 0 16px;
}

#login label {
  display: flex;
  align-items: center;
  font-weight: 600;
  margin: 0 0 8px;
}

input {
  display: flex;
  align-items: center;
  width: 100%;
  line-height: 1.42;
  margin: 0;
  padding: 0 12px;
  height: 38px;
  border-radius: 6px;
  border: thin solid;
  border-color: #c2c2c2;
  transition: 0.25s;
  outline: none;
  box-sizing: border-box;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  background-color: #fff;
}

input:hover {
  border-color: #474747;
}

input:focus {
  border-color: var(--blue);
}

input:disabled {
  border-color: #d6d6d6;
  color: var(--gray);
  background-color: #f5f5f5;
  cursor: default;
}

input.error {
  border-color: var(--red);
}

.field div.error {
  padding-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
}

#actions {
  padding-top: 8px;
}

button {
  display: inline-block;
  width: 100%;
  height: 40px;
  font-weight: 600;
  color: #fff;
  background-color: var(--blue);
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

button:hover {
  background-color: #0c78d2;
}

button:focus,
button:active {
  background-color: var(--dark-blue);
}

button:disabled {
  pointer-events: none;
  opacity: 0.65;
}

#actions div {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
}

span.scope {
  display: inline-block;
  background-color: var(--sw1);
  border-radius: 8px;
  padding: 0 5px;
}

span.scope.restricted {
  background-color: var(--sw2);
}

span.account {
  color: var(--sw2);
  font-weight: 600;
}

span.role-name {
  color: var(--dark-blue);
}

span.dim {
  color: #b0b0b0;
  position: relative;
  top: -1px;
}

#accounts .action,
#approval .action {
  display: flex;
  justify-content: space-between;
}

#approval ul li {
  padding-bottom: 6px;
}

#approval .action {
  margin-top: 16px;
}

#accounts .action button,
#approval .action button {
  flex: 0.4;
}

button#deny {
  background-color: #a7a7a7;
}

button#deny:hover {
  background-color: #989898;
}

button#deny:focus,
button#deny:active {
  background-color: #858585;
}

a {
  cursor: pointer;
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  color: #0c78d2;
  text-decoration: underline;
}

#error .error span.client {
  font-weight: 600;
}

#error aside {
  padding: 0 0 16px;
}

#error aside div {
  padding: 10px 10px 0;
  font-size: 16px;
}

#error button {
  margin-top: 8px;
}

footer {
  margin: 20px 0 0;
  text-align: center;
  color: var(--gray);
}

#accounts .loading {
  margin: 16px;
  font-style: italic;
  display: flex;
  align-items: center;
}

#accounts .roles {
  border: 1px solid #c2c2c2;
  border-radius: 6px;
  margin: 8px 0;
  padding: 4px;
  background-color: #fcfcfc;
  max-height: 200px;
  overflow-y: scroll;
}

#accounts .role label {
  border-radius: 6px;
  margin: 1px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: 0.25s;
  padding: 8px 12px;
}

#accounts .role label:hover {
  background-color: var(--dark-sand);
}

#accounts .role label .account-name {
  font-size: 18px;
}

#accounts .role label .account-role {
  color: #aaa;
}

#accounts .role input {
  appearance: none;
  width: 0;
  height: 0;
  border: none;
  margin: 0;
}

#accounts .role input:checked + label {
  background-color: var(--sw4);
}
