:root {
  --bg1: #1e1e1e;
  --bg2: #282828;
  --fg1: #fff;
  --fg2: rgba(255, 255, 255, 0.85);
  --primary: #0095d5;
  --primary-hover: #0084bd;
  --primary-press: #0073a5;
  --lines: #383838;
  --alt-fg1: rgba(194, 194, 194, 0.5);
  --alt-fg2: #e1e1e1;
  --alt-bg2: #545454;
  --error: #f44336;
  --disabled-opacity: 0.5;
  --font-family-body: "IBM Plex Sans", "Helvetica Neue", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-family-header: "Titillium Web", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg1);
  color: var(--fg2);
  font-family: var(--font-family-body);
  font-size: 14px;
  line-height: 23.1px;
  letter-spacing: normal;
}

.page-wrap {
  align-items: center;
  background-color: var(--bg1);
  display: flex;
  height: 100vh;
  padding: 0;
  justify-content: center;
}

.login-form {
  min-height: 100vh;
}

.session-form-hold {
  margin: 0 auto;
  max-width: 480px;
  position: relative;
  width: 100%;
}

.mat-mdc-card {
  background-color: var(--bg2);
  color: var(--fg2);
  padding: 0 0 18px !important;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  position: relative;
  border: 0;
  border-radius: 0;
  box-shadow: 0 2px 1px -1px rgba(0,0,0,0.2), 0 1px 1px 0 rgba(0,0,0,0.14), 0 1px 3px 0 rgba(0,0,0,0.12);
}

.logo-wrapper {
  background-color: var(--bg2);
  background-image: url("/stars-sky.jpg");
  background-size: cover;
  background-position: center;
  border-bottom: solid 1px var(--lines);
  height: 250px;
  padding: 20% 0;
  position: relative;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo {
  fill: #fff;
  height: auto;
  position: relative;
  width: 256px;
  z-index: 2;
}

.card-bottom {
  overflow: auto;
  padding: 0 16px;
}

.form-container {
  padding: 20px 32px 8px;
}

form { display: block; }

.ix-input {
  color: var(--fg1);
  display: block;
  margin-bottom: 12px;
  margin-top: 12px;
  padding: 8px 0;
}

.ix-input .label {
  display: inline-flex;
  font-size: 10px;
  color: #fff;
  padding: 0 0 5px 8px;
  margin: 0 8px 0 0;
}

.input-container {
  background: var(--bg1);
  border: solid 1.5px var(--lines);
  border-radius: 2px;
  display: flex;
  flex-direction: row;
  font-size: 12px;
  position: relative;
}

.input-container:focus-within {
  border-color: var(--primary);
}

.prefix-icon {
  align-items: center;
  bottom: 0;
  cursor: default;
  display: flex;
  opacity: 0.5;
  padding: 5px;
  position: absolute;
  left: 2px;
  right: auto;
  top: 0;
  user-select: none;
}

.prefix-icon svg {
  height: 14px;
  width: 14px;
  fill: currentColor;
}

.input-container input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--fg2);
  font-family: var(--font-family-body);
  font-size: 12px;
  padding: 8px 8px 8px 28px;
  width: 100%;
  flex: 1;
  min-width: 0;
}

.input-container input::placeholder {
  color: var(--alt-fg1);
}

.password-field {
  font-family: "text-security-disc", "Courier New", monospace;
  font-size: 14px;
  -webkit-text-security: disc;
}

input[type="text"].password-field {
  font-family: var(--font-family-body);
  -webkit-text-security: none;
}

.toggle_pw {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  color: var(--fg2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.5;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  margin-right: 2px;
  transition: opacity 160ms ease;
}
.toggle_pw:hover { opacity: 1; }
.toggle_pw svg {
  height: 18px;
  width: 18px;
  fill: currentColor;
  position: relative;
  top: -2px;
}
.toggle_pw:active { transform: scale(0.96); }

.insecure-connection {
  align-items: center;
  column-gap: 9px;
  display: flex;
  font-size: 12px;
  padding: 0 0 5px 8px;
  color: var(--alt-fg1);
}
.insecure-connection svg {
  height: 16px;
  width: 16px;
  fill: currentColor;
  flex-shrink: 0;
}
.insecure-connection .message {
  flex-grow: 1;
}

.error {
  display: flex;
  justify-content: center;
  font-size: 12px;
  color: var(--error);
  padding: 8px 0;
  animation: error-in 240ms cubic-bezier(0.2, 0, 0, 1);
}
.error[hidden] { display: none; }

@keyframes error-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.submit-button {
  margin-top: 16px;
  width: 100%;
  height: 36px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 0;
  font-family: var(--font-family-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: normal;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  position: relative;
  transition: background-color 160ms ease;
  min-height: 36px;
}
.submit-button:hover { background: var(--primary-hover); }
.submit-button:active { background: var(--primary-press); transform: scale(0.99); }
.submit-button:disabled { cursor: not-allowed; opacity: 0.7; }

.btn-spinner {
  position: absolute;
  top: 50%; left: 50%;
  width: 18px; height: 18px;
  margin: -9px 0 0 -9px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 720ms linear infinite;
}
.submit-button.loading .btn-label { opacity: 0; }

@keyframes spin { to { transform: rotate(360deg); } }

.copyright {
  color: var(--alt-fg1);
  font-size: 85%;
  margin-bottom: 18px;
  margin-top: 10px;
  text-align: center;
}
.copyright a {
  color: var(--alt-fg1);
  text-decoration: none;
}
.copyright a:hover { color: var(--alt-fg2); }

@media (max-width: 600px) {
  .page-wrap {
    bottom: 0;
    height: 100vh;
    left: 0;
    max-width: 100%;
    overflow-x: hidden;
    position: absolute;
    right: 0;
    top: 0;
    width: 100vw;
  }
  .mat-mdc-card {
    min-height: 100vh;
    top: 0;
  }
  .card-bottom { padding: 0; }
  .page-wrap > * { max-width: 100%; width: 100%; }
  .logo-wrapper {
    align-items: center;
    display: flex;
    justify-content: center;
    padding: 20% 0;
  }
  .form-container { padding: 20px 16px 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}