﻿/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

@font-face {
  font-family: "PublicSans-Regular";
  src: url("../fonts/PublicSans-Regular.woff2") format("woff2");
}

@font-face {
  font-family: "PublicSans-Bold";
  src: url("../fonts/PublicSans-Bold.woff2") format("woff2");
}

@font-face {
  font-family: "ZillaSlab-Regular";
  src: url("../fonts/ZillaSlab-Regular.woff2") format("woff2");
}

@font-face {
  font-family: "ZillaSlab-Bold";
  src: url("../fonts/ZillaSlab-Bold.woff2") format("woff2");
}

:root {
  --accent: #0b75d3;
  --valid: #00b093;
  --error: #b8014c;
  --disabled: #9e9e9e;
  --field-lining: #d7e2ed;
  --white: #ffffff;
  --diplomat: #fdf3ef;
  --grey: #f8fafc;
  --warning: #ee8866;
  --primary-darker: #002b54;
  --primary: #0d6efd;
  /* --primary-darker: #7b2442; */
  --institution-bg: #4a453a;
  --orange: #e65902;
  --yellow: #ffd135;
  --black: #2a2a2a;
  --grey-light: #f2f2f2;
  --grey-medium: #a7a7a7;
  --grey-dark: #4e4d4d;
  --grey-border: #e0e0e0;
  --background-footer: #f2f2f2;
  --green-yes: #298e4a;
  --red-no: #dd3939;
  --yellow-maybe: #ffb835;
  --regular: PublicSans-Regular, sans-serif;
  --bold: PublicSans-Bold, sans-serif;
  --input-width: 400px;
  --beta: #eedd888a;
}

.early-bird-banner {
  margin-top: -15px;
  background-color: var(--beta);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.early-bird-banner .horizontal {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
}
.early-bird-banner .horizontal.gap-10 {
  gap: 10px;
}
.early-bird-banner .vertical {
  display: flex;
  flex-direction: column;
}
.early-bird-banner .content {
  width: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 30px 0;
}
.early-bird-banner .horizontal.main {
  font-size: 20px;
  font-weight: bold;
}
.early-bird-banner .remaining {
  align-self: stretch;
  margin-inline-start: 40px;
  border-inline-start: 1px solid var(--disabled);
  padding-inline-start: 40px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.early-bird-banner .remaining i {
  font-size: 22px;
}

body {
  font-size: 16px;
  font-family: var(--regular);
}

h1,
h2,
h3,
h4 {
  font-family: var(--bold);
}
h1 {
  font-weight: normal;
  font-size: 32px;
  margin: 0 0 30px 0;
}

h2 {
  font-size: 24px;
  line-height: 28px;
  margin: 0 0 30px 0;
}

h3 {
  font-size: 18px;
  margin: 0 0 20px 0;
}

h4 {
  font-size: 18px;
  margin: 0 0 15px 0;
}

p {
  max-width: 700px;
}

/* NAVBAR */
nav.navbar {
  background-color: rgb(0, 43, 84);
}
.navbar .navbar-nav .nav-link {
  color: #fff;
}
.navbar-toggler {
  border: 1px solid white;
}

.navbar-toggler-icon {
  /*couldnt make the bootstrap variable to work, so just copy the SVG...*/
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.narrow-container {
  max-width: 330px;
  margin: auto;
}

/* *** LOGIN *** */
.login-register-container {
  margin: 0 auto;
  max-width: 1040px;
  padding: 32px 16px;
}
.confirm-email-container {
  margin-bottom: 40px;
  text-align: center;
}
.confirm-email-message {
  font-family: var(--bold);
  font-size: 16px;
  font-weight: 700;
}
.confirm-email-message::before {
  display: inline-block;
  font-size: 18px;
  font-weight: 700;
  height: 18px;
  line-height: 1;
  width: 18px;
}
.confirm-email-message-success {
  color: var(--valid);
}
.confirm-email-message-success::before {
  content: "✓";
}
.confirm-email-message-error {
  color: var(--error);
  font-size: 14px;
}
.confirm-email-message-error::before {
  content: "✖";
  font-size: 16px;
}
.confirm-password-reset-container {
  margin-bottom: 40px;
  text-align: center;
}
.confirm-password-reset-message {
  color: var(--valid);
  font-family: var(--bold);
  font-size: 16px;
  font-weight: 700;
}
.confirm-password-reset-message::before {
  content: "✓";
  display: inline-block;
  font-size: 18px;
  font-weight: 700;
  height: 18px;
  line-height: 1;
  width: 18px;
}
.login-register-layout {
  align-items: flex-start;
  color: var(--primary-darker);
  display: grid;
  gap: 64px;
  grid-template-columns: 1fr 1fr;
}
.login-panel {
  padding-right: 64px;
  border-right: 1px solid var(--field-lining);
}
.register-panel {
  padding-left: 0;
}
.auth-kicker {
  font-family: var(--bold);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}
.auth-title {
  font-family: ZillaSlab-Regular, sans-serif;
  font-size: 34px;
  font-weight: 400;
  line-height: inherit;
  margin-bottom: 12px;
}
.auth-subtitle {
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 20px;
}
.auth-form-label {
  font-family: var(--bold);
  font-size: 14px;
  font-weight: 700;
  width: min(var(--input-width), 100%);
}
.auth-input,
.auth-input:-internal-autofill-selected {
  border: 1px solid var(--field-lining);
  border-radius: 5px;
  color: var(--accent) !important;
  font-size: 14px;
  height: 56px;
  padding: 16px;
  width: min(var(--input-width), 100%);
}
.auth-input::placeholder {
  color: var(--disabled);
}
.auth-input:focus {
  box-shadow: none;
}
.auth-button {
  background-color: var(--white) !important;
  border: 1px solid var(--accent) !important;
  border-radius: 5px !important;
  color: var(--accent) !important;
  font-family: var(--bold);
  font-size: 16px;
  font-weight: 700;
  height: 56px;
  width: min(var(--input-width), 100%);
}
.auth-button:hover {
  background-color: var(--accent) !important;
  color: var(--white) !important;
  transition:
    color 0.3s ease,
    background-color 0.3s ease;
}
.forgot-password-link {
  color: var(--accent);
  display: block;
  font-size: 16px;
  margin-top: 16px;
  text-align: center;
}
.forgot-password-link:hover {
  color: var(--primary-darker);
  transition: color 0.3s ease;
}
.register-start-error {
  color: var(--error);
  font-family: var(--bold);
  font-size: 16px;
  font-weight: 700;
  margin-top: 30px;
}
.register-start-error::before {
  content: "✖";
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  height: 14px;
  line-height: 1;
  width: 14px;
}
@media screen and (max-width: 1050px) {
  .login-register-layout {
    gap: 40px;
    grid-template-columns: 1fr;
  }
  .login-panel {
    border-right: none;
    border-bottom: 1px solid var(--field-lining);
    padding-bottom: 40px;
    padding-right: 0;
  }
  .forgot-password-link {
    text-align: left;
  }
}
@media screen and (max-width: 450px) {
  :root {
    --input-width: calc(100vw - 32px);
  }
}
/* *** /LOGIN *** */

/* *** REGISTER *** */
.register-page {
  align-items: start;
  color: var(--primary-darker);
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(320px, 440px) 1fr;
  margin: 0 auto;
  max-width: 1050px;
  min-height: calc(100vh - 80px);
  padding: 64px 48px;
}
.register-page a.link {
  color: var(--accent);
}
.password-container .auth-button,
.register-page .auth-button,
.login-register-layout .register-panel .auth-button {
  background-color: var(--accent) !important;
  color: var(--white) !important;
}
.register-title {
  font-family: ZillaSlab-Regular, sans-serif;
  font-size: 34px;
  font-weight: 400;
  line-height: inherit;
  margin-bottom: 12px;
}
.register-subtitle {
  font-size: 16px;
  font-weight: 400;
}
.register-step {
  border: 0;
  margin: 0;
  padding: 0;
}
.register-step[hidden] {
  display: none !important;
}
.register-step-actions {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  width: min(var(--input-width), 100%);
}
.auth-button-secondary {
  align-items: center;
  background-color: transparent !important;
  border: none !important;
  color: var(--accent);
  cursor: pointer;
  display: inline-flex;
  font-family: var(--bold);
  font-size: 16px;
  font-weight: 700;
  gap: 5px;
  padding: 0;
  text-decoration: none;
  width: fit-content;
}
.auth-button-secondary.register-back-link::before {
  content: "←";
  display: inline-block;
  font-size: 20px;
  line-height: 1;
  margin-top: -5px;
}
.auth-button-secondary.register-next-link::after {
  content: "→";
  display: inline-block;
  font-size: 20px;
  line-height: 1;
  margin-top: -5px;
}
.auth-button-secondary.register-login-link::after {
  content: "→";
  display: inline-block;
  font-size: 20px;
  line-height: 1;
}
.auth-button-secondary:hover {
  background-color: transparent !important;
  color: var(--primary-darker);
  transition: color 0.3s ease;
}
.register-step .register-choice-group .form-check,
.settings-row-editing .register-choice-group .form-check {
  width: inherit;
}
.register-choice-group {
  border: 1px solid var(--field-lining);
  border-radius: 5px;
  display: flex;
  gap: 0;
  height: 56px;
  width: fit-content;
}
.register-choice-group .form-check {
  height: 56px;
  margin: 0;
  min-height: unset;
  padding: 0;
}
.register-choice-group .form-check-input {
  pointer-events: none;
  position: absolute;
  opacity: 0;
}
.register-choice-group .form-check-label {
  border-right: 1px solid var(--field-lining);
  color: var(--accent);
  cursor: pointer;
  display: block;
  font-family: var(--bold);
  font-size: 14px;
  font-weight: 700;
  height: inherit;
  margin: -1px;
  padding-inline: 14px;
  padding-top: 18px;
  text-align: center;
}
.register-choice-group .form-check:last-child .form-check-label {
  border-right: 0;
}
.register-choice-group .form-check-input:checked + .form-check-label {
  border: 2px solid var(--accent);
  padding-top: 16px;
}
.register-choice-group
  .form-check:first-child
  .form-check-input:checked
  + .form-check-label {
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
}
.register-choice-group
  .form-check:last-child
  .form-check-input:checked
  + .form-check-label {
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
}
.form-check-input:checked {
  background-color: var(--accent);
  border-color: var(--accent);
}
.input[type="radio"]:focus,
.input[type="checkbox"]:focus,
.form-check-input:focus {
  box-shadow: none;
}
.register-step .auth-radio-group {
  display: flex;
  flex-direction: row;
  gap: 10px;
}
.register-step .auth-radio-group .form-check {
  width: fit-content;
}
.register-step .form-check {
  width: min(var(--input-width), 100%);
}
.register-step .form-check label,
.register-step select {
  cursor: pointer;
  font-size: 14px;
}
/* .optional-fields-section {
  opacity: 0.8;
} */
.register-visual {
  background-image: url("../images/decor-institution.png");
  background-position: center top;
  background-repeat: no-repeat;
  background-size: contain;
  min-height: 520px;
}
.custom-warning {
  background-color: var(--white);
  border: 1px solid var(--warning);
  border-left: 45px solid var(--warning);
  border-radius: 0;
  color: var(--primary-darker);
  font-size: 16px;
  font-weight: 400;
  padding: 11px 16px;
}
.custom-warning::before {
  color: var(--white);
  content: "⚠";
  font-size: 18px;
  font-weight: 400;
  left: -30px;
  line-height: 1;
  position: absolute;
}
.country-warning {
  max-width: var(--input-width);
}
#AgreeIpCountryMismatch-errors {
  padding-left: 24px;
}
.register-page .alert-danger {
  background-color: var(--white);
  border: 1px solid var(--error);
  border-left: 45px solid var(--error);
  border-radius: 0;
  color: var(--error);
  font-size: 16px;
  font-weight: 400;
  padding: 11px 16px;
}
.register-page .alert-danger::before {
  content: "✖";
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  height: 14px;
  line-height: 1;
  width: 14px;
}
.login-register-container .text-danger,
.register-page .text-danger,
.settings-page .text-danger {
  color: var(--error) !important;
  font-family: var(--bold);
  font-size: 16px;
  font-weight: 700;
  list-style: none;
  margin-bottom: 24px;
  padding-left: 0px;
}
.settings-page .text-danger {
  margin-bottom: 0px;
}
.login-register-container .text-danger li::before,
.register-page .text-danger li::before,
.settings-page .text-danger li::before {
  content: "✖";
  color: var(--error);
  font-size: 14px;
  font-weight: 700;
}
.settings-page .text-danger li::before {
  padding-right: 5px;
}
@media screen and (max-width: 1050px) {
  .register-page {
    gap: 32px;
    grid-template-columns: 1fr;
    padding: 32px 16px;
  }
  .register-visual {
    display: none;
  }
}
/* *** /REGISTER *** */

/* *** PASSWORD *** */
.password-container {
  color: var(--primary-darker);
  max-width: 980px;
  padding: 32px 0;
}
.password-container .auth-input,
.password-container .auth-input:-internal-autofill-selected {
  width: min(790px, 100%);
}
.password-container .text-danger {
  color: var(--error) !important;
  font-family: var(--bold);
  font-size: 16px;
  font-weight: 700;
  list-style: none;
  padding-left: 0px;
}
.password-container .text-danger li::before {
  content: "✖";
  color: var(--error);
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  width: 18px;
}
.confirm-forgot-password-message {
  color: var(--valid);
  font-family: var(--bold);
  font-size: 16px;
  font-weight: 700;
}
.confirm-forgot-password-message a {
  color: var(--accent);
  font-family: var(--regular);
  font-weight: 400;
  padding-left: 22px;
}
.confirm-forgot-password-message::before {
  content: "✓";
  display: inline-block;
  font-size: 18px;
  font-weight: 700;
  height: 18px;
  line-height: 1;
  width: 18px;
}
.password-container .alert-danger {
  background-color: var(--white);
  border: 1px solid var(--error);
  border-left: 45px solid var(--error);
  border-radius: 0;
  color: var(--error);
  font-size: 16px;
  font-weight: 400;
  padding: 11px 16px;
}
.password-container .alert-danger::before {
  content: "✖";
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  height: 14px;
  line-height: 1;
  width: 14px;
}
/* *** /PASSWORD *** */

/* *** /ACCOUNT-SETTINGS *** */
.settings-page {
  color: var(--primary-darker);
  font-size: 16px;
}
.settings-page a.link {
  color: var(--accent);
}
.settings-section {
  align-items: center;
  display: flex;
  flex-direction: column;
}
.settings-content {
  padding: 40px 60px 20px;
  width: 1200px;
}
.settings-content.settings-content-diplomat {
  padding: 0px 60px;
}
.bg-white {
  background-color: var(--white);
}
.bg-diplomat {
  background-color: var(--diplomat);
}
.bg-grey {
  background-color: var(--grey);
}
.settings-title {
  font-family: ZillaSlab-Regular, sans-serif;
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 24px;
}
.settings-grid {
  display: grid;
  gap: 90px;
  grid-template-columns: 1fr 1fr;
}
.settings-row {
  align-items: center;
  border-bottom: 1px solid var(--field-lining);
  display: grid;
  grid-template-columns: 170px 1fr 32px;
  min-height: 56px; /* 40px; */
}
.settings-row.settings-row-wo-label {
  grid-template-columns: 0px 1fr 32px;
}
.settings-label {
  font-family: var(--bold);
  font-weight: 700;
}
.settings-value-warning {
  color: var(--warning);
  font-weight: 700;
}
.settings-value-warning::before {
  content: "⚠";
  margin-right: 4px;
}
.settings-edit-button {
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--accent);
  height: 24px;
  width: 24px;
}
.settings-edit-button::before {
  content: "✎";
  font-size: 18px;
  line-height: 1;
}
.settings-row-editing {
  grid-template-columns: 170px 1fr;
  padding: 8px 0;
}
.settings-row-editing.settings-row-wo-label {
  grid-template-columns: 0px 1fr;
}
.settings-row-editing.settings-pfstatus-editing {
  align-items: start;
}
.settings-row-editing.settings-pfstatus-editing > .settings-label {
  margin-top: 8px;
}
.settings-input-row {
  display: flex;
  flex-direction: row;
  gap: 0px;
  justify-content: space-between;
}
.settings-input-container {
  width: 100%;
}
.settings-input {
  border: 1px solid var(--field-lining);
  border-radius: 5px;
  color: var(--accent) !important;
  font-size: 14px;
  max-width: 275px;
  min-height: 38px;
}
.settings-row.settings-row-wo-label .settings-input {
  max-width: 400px;
}
.settings-input::placeholder {
  color: var(--disabled);
}
.settings-input:focus {
  box-shadow: none;
}
.settings-error-message {
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 4px;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
  font-size: 13px;
}
.settings-error-message p {
  margin: 4px 0;
  display: block;
}
.settings-error-message p:first-child {
  margin-top: 0;
}
.settings-error-message p:last-child {
  margin-bottom: 0;
}
.settings-edit-actions {
  display: flex;
  margin-top: 8px;
  width: fit-content;
}
.settings-save-button {
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--valid);
  height: 24px;
  width: 20px;
}
.settings-save-button::before {
  content: "✔";
  font-size: 18px;
  line-height: 1;
}
.settings-cancel-button {
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--error);
  height: 24px;
  width: 24px;
}
.settings-cancel-button::before {
  content: "✖";
  font-size: 18px;
  line-height: 1;
}
.settings-dependent-fields {
  margin-right: 32px;
}
.settings-dependent-fields legend {
  font-size: 14px;
  font-style: italic;
}
.settings-dependent-fields .settings-dependent-row {
  /* border-bottom: 1px solid var(--field-lining); */
  padding-bottom: 8px;
}
.country-ip-mismatch .text-danger {
  padding-left: 24px;
}
.diplomat-notice {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr auto;
  padding: 20px 0px;
}
.diplomat-notice-link {
  align-self: end;
}

@media screen and (max-width: 900px) {
  .settings-content {
    padding: 32px 20px;
  }
  .settings-grid {
    gap: 20px;
    grid-template-columns: 1fr;
  }
  .settings-row {
    grid-template-columns: 140px 1fr 32px;
  }
  .diplomat-notice {
    grid-template-columns: 1fr;
    padding: 24px 20px;
  }
}
/* *** /ACCOUNT-SETTINGS *** */

input[type="radio"]:after {
  cursor: pointer;
  width: 20px;
  height: 20px;
  border-radius: 10px;
  top: -3px;
  left: -1px;
  position: relative;
  background-color: white;
  content: "";
  display: inline-block;
  box-shadow: var(--accent) 0 0 1px 1px;
}
input[type="radio"]:checked:after {
  cursor: pointer;
  width: 20px;
  height: 20px;
  border-radius: 10px;
  top: -3px;
  left: -1px;
  position: relative;
  background-color: var(--accent);
  content: "";
  display: inline-block;
  border: 2px solid var(--white);
  box-shadow: var(--accent) 0 0 1px 1px;
}

.btn {
  border-radius: 10px;
}
.btn-primary,
.btn-primary:disabled {
  color: var(--white);
  background-color: var(--accent);
  border-color: var(--accent);
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  color: var(--white);
  background-color: #1b6ec2;
  border-color: #1861ac;
}

.checkbox {
  margin-left: 1.25em;
}
/* Sticky footer styles
-------------------------------------------------- */

.border-top {
  border-top: 1px solid #e5e5e5;
}
.border-bottom {
  border-bottom: 1px solid #e5e5e5;
}

button.accept-policy {
  font-size: 1rem;
  line-height: inherit;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
  position: relative;
  min-height: 100%;
}

body {
  /* Margin bottom by footer height */
  margin-bottom: 60px;
}
.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  white-space: nowrap;
  line-height: 60px; /* Vertically center the text there */
}

.subtitle {
  font-size: 18px;
  font-weight: bold;
  display: inline-block;
  margin-bottom: 30px;
}

img.bg-decor {
  margin: -200px 40px 0 80px;
}

@media screen and (max-width: 1050px) {
  img.bg-decor {
    display: none;
  }
}

#input-reg {
  display: none;
}
#input-reg.show {
  display: block;
}
