﻿:root {
  --vs-blue: #409CFF;
  --vs-blue-hover: #0269D7;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 18px;
  font-family: OpenSans, "Open Sans", sans-serif;
  margin: 0;
  line-height: 1.42857;
}

html, body {
  min-height: 100vh;
}

button {
  cursor: pointer;
}

label,
input {
  font-size: 1rem;
}

hr {
  margin: 1rem;
  border: 1px solid var(--vs-blue);
}

img {
  max-width: 100%;
}

th, td {
  text-align: left;
}

body {
  margin: 0;
  padding: 0;

  display: flex;
  align-items: center;
  justify-content: center;
}

body > main > .content-box {
  background: #ffffff;

  padding: 1rem;
  border: 1px solid #444;
  border-radius: 0.5rem;
}

body > main > .content-box + .content-box {
  margin-top: 2rem;
}

body > main > .logged-in-as,
body > main > .links {
  margin: 0.25rem;
  text-align: right;
}

body > main > .logged-in-as,
body > main > .logged-in-as > a,
body > main > .links,
body > main > .links > a {
  color: #ffffff;
}

a.btn,
input[type=button],
input[type=submit],
button {
  padding: 0.5rem 1rem;
}

.content-box > h1:first-child,
.content-box > h2:first-child,
.content-box > h3:first-child {
  margin-top: 0;
}

h1 { font-size: 1.5rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.1rem; }

ol, ul {
  padding-left: 0;
}

li {
  list-style: none;
}

table {
  width: 100%;
  border-collapse: collapse;
}

table tr:nth-child(2n) {
  background-color: #eee;
}

table td,
table th {
  vertical-align: top;
  padding: 0.25rem 0.5rem;
}

table td:first-child,
table th:first-child {
  padding-left: 0;
}

/* forms start */

label {
  display: block;
  cursor: pointer;
}

input[type=checkbox] {
  width: 1rem;
}

input[type=email],
input[type=password],
input[type=text],
textarea {
  padding: 0.5rem;
  border: 1px solid #444;
  border-radius: 0.25rem;
  width: 100%;
}

textarea {
  min-height: 5rem;
  resize: vertical;
  white-space: pre;
}

div.fields + div.fields,
div.fields + div.buttons {
  margin-top: 1rem;
}

div.checkbox-field {
  display: grid;
  gap: 0;
  grid-template-columns: fit-content(100%);
}

div.checkbox-field > input {
  grid-row: 1;
  grid-column: 1;
}

div.checkbox-field > label {
  grid-row: 1;
  grid-column: 2;
}

div.checkbox-field > label + p {
  grid-row: 2;
  grid-column: 2;
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
}

.validation-summary {
  border: 1px solid #f00;
  color: #f00;
  background-color: #fee;

  margin-bottom: 1rem;
  padding: 0.5rem;
}

.validation-summary ul {
  margin: 0;
  padding-left: 2rem;
}

button {
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: 0.5rem;
  font-size: inherit;
}

button .icon {
  line-height: 1;
  margin-top: -25%;
  margin-bottom: -25%;
}

.logout {
  color: #fff;
  background-color: #d34;
  border: 1px solid #b12;
  border-radius: 0.25rem;
}

.logout:hover {
  color: #fff;
  background-color: #f56;
  border-color: #d34;
}

.login {
  color: #fff;
  background-color: var(--vs-blue);
  border: 1px solid var(--vs-blue);
  border-radius: 0.25rem;
}

.login:hover {
  color: #fff;
  background-color: var(--vs-blue-hover);
  border-color: var(--vs-blue-hover);
}

.login .icon:after {
  font-size: 200%;
  content: "⎆";
  vertical-align: 30%;
}

/*
    span that contains any single credential, like an email or password.
    usually combined with click-to-copy
*/
.credentials {
  display: inline-block;
  white-space: nowrap;
  font-family: monospace;
  /*font-size: 1rem;*/

  border-radius: 0.1rem;
  border: 1px solid #aaa;
  background-color: #eee;
  padding: 0.25rem 0.5rem;
}

.credentials.click-to-copy-container .icon:after {
  content: "📋";
  cursor: pointer;
}

.credentials.click-to-copy-container .icon.success:after {
  content: "✅";
}

.sr-only {
  border: 0 !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  -webkit-clip-path: inset(50%) !important;
  clip-path: inset(50%) !important;
  height: 1px !important;
  overflow: hidden !important;
  margin: -1px !important;
  padding: 0 !important;
  position: absolute !important;
  width: 1px !important;
  white-space: nowrap !important;
}

/* layout */

body {
  display: flex;
}

body > aside {
  width: 450px;
  height: 100vh;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;

  color: white;
  background-color: var(--vs-blue);
}

body > aside > .icon > svg {
  height: 64px;
}

body > main {
  width: 100%;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

body > main > .content-box {
  width: 480px;
}

body > main > .content-box > h1 {
  border-bottom: 1px solid black;
}

/* individual views */

.controller-account.action-login .content-box {
  border-color: transparent;
}
.controller-account.action-login .forms-login button[type='submit'] {
  width: 100%;
}