﻿a {
  color: #5b8ff5;
  font-size: 14px;
  line-height: 18px;
}

body {
  font-family: Montserrat;
}

.welcome-page .logo {
  width: 64px;
}

.icon-banner {
  width: 32px;
}

.body {
  color: #1f2226;
}

.body-container {
  display: flex;
  flex-direction: column;

  padding-top: 80px;
  padding-bottom: 40px;

  height: 100vh;
  max-width: 100% !important;
}

.error-container {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 0 12px;
    background-color: #FEF2F2;
    border: 1px solid #ff0000;
    border-radius: 8px;
    margin: 16px 0;
}

.error-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: #DC2626;
    margin-top: 2px;
}

.error-text-header {
    margin-bottom: 0;
    font-weight: 500;
    font-size: 14px;
}

.error-text-body {
    margin-top: 0;
    font-size: 12px;
    color: rgb(110, 117, 133);
}

.body-wrapper {
  background-color: #f2f3f8;
  background-size: cover;
}

.content-wrapper {
  flex-grow: 1;
}

.welcome-page li {
  list-style: none;
  padding: 4px;
}

.logged-out-page iframe {
  display: none;
  width: 0;
  height: 0;
}

.grants-page .card {
  margin-top: 20px;
  border-bottom: 1px solid lightgray;
}

.grants-page .card .card-title {
  font-size: 120%;
  font-weight: bold;
}

.grants-page .card .card-title img {
  width: 100px;
  height: 100px;
}

.grants-page .card label {
  font-weight: bold;
}

.mb-18 {
  margin-bottom: 72px;
}

.block-card {
  max-width: 520px;
  min-width: 320px;
  padding: 40px;
  background: #fff;
  border-radius: 20px;
}

.pnd {
  max-width: 520px;
  min-width: 320px;
  padding: 16px 40px;

  background-color: transparent;

  font-size: 14px;
  line-height: 20px;
}

.pnd-row {
    font-size: 14px;
    font-weight: 400;
    line-height: 18px;
    color: rgb(110, 117, 133);
}

.bh2 {
  font-size: 24px;
  font-weight: 500;
  line-height: 28px;
}

.bh3 {
  font-weight: 400;
  font-size: 14px;
  line-height: 18px;
  color: #6e7585;
}

.form-control-lg {
  height: 56px;
  padding: 18px 16px;
  font-size: 16px;
  line-height: 20px;
  font-weight: 500;
  border-radius: 1.25rem;
  border-color: rgb(216, 219, 226) !important;
  box-shadow: none !important;
}

.btn {
  border-radius: 16px;
  border: none;
}

.btn-lg {
  padding: 18px 40px;
  height: 56px;
  line-height: 20px;
  font-weight: 600;
  font-size: 16px;
}

.btn-primary {
  background-color: #2b6ef2;
}

.mmb-10 {
  margin-bottom: 40px;
}

.mmb-8 {
  margin-bottom: 32px;
}

.mmb-6 {
  margin-bottom: 24px;
}

.mmb-4 {
  margin-bottom: 16px;
}

.mmt-3 {
  margin-top: 12px;
}

.mmb-2 {
  margin-bottom: 8px;
}

.mml-4 {
  margin-left: 16px;
}

.action-helper {
  font-size: 14px;
  font-weight: 400;
  line-height: 16px;
  color: rgb(110, 117, 133);
}

.action-link {
  font-size: 14px;
  font-weight: 500;
  line-height: 16px;
}

.p {
  font-weight: 400;
  font-size: 14px;
  line-height: 18px;
  color: rgb(110, 117, 133);
}

.registration-text {
    font-weight: 400;
    font-size: 14px;
    line-height: 18px;
}

.v-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border: 2px solid #dcdee6;
    border-radius: 6px;
    background-color: #ffffff;
    cursor: pointer;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    margin: 0;
    padding: 0;
}

.v-checkbox:checked {
    border-color: #2b6ef2;
}

.v-checkbox:checked::after {
    content: "";
    position: absolute;
    width: 6px;
    height: 12px;
    border: solid #2b6ef2;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) translate(-1px, -1px);
}

.v-checkbox:disabled {
    background-color: #f8f9fa;
    border-color: #e9ecef;
    cursor: not-allowed;
    opacity: 0.6;
}

.v-checkbox:disabled:checked {
    border-color: #a0a4ae;
}

.v-checkbox:disabled:checked::after {
    border-color: #a0a4ae;
}

.v-checkbox-container {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.v-checkbox-label {
    margin-bottom: 0px;
    font-weight: 500;
}

.extranet-checkbox:checked::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.dash-block {
  border: 1px dashed #c2c6d2;
  border-radius: 16px;
  height: 64px;
  display: flex;
  padding: 12px 20px;
}

.dash-block-head {
  color: #1f2226;
  font-weight: 500;
  font-size: 14px;
  line-height: 16px;
}

.dash-block-sub {
  font-weight: 500;
  font-size: 12px;
  line-height: 16px;
  color: #6e7585;
}

.dash-block-content {
  padding-left: 28px;
}

.full-height {
  height: 100%;
}

.full-width {
  width: 100%;
}

@media (max-width: 599px) {
  .bh2 {
    font-size: 20px;
  }

  .body-container {
    padding-top: 20px;
    padding-left: 0;
    padding-right: 0;
  }

  .btn-lg {
    height: 40px;
    padding: 10px 20px;
    line-height: 20px;
    font-size: 16px;
    border-radius: 10px;
  }

  .mmb-m-4 {
    margin-bottom: 24px !important;
  }

  .mmb-m-2 {
    margin-bottom: 8px !important;
  }

  .mmt-m-2 {
    margin-bottom: 8px !important;
  }

  .mb-m-8 {
    margin-bottom: 32px !important;
  }

  .mml-m-0 {
    margin-left: 0 !important;
  }

  .action-helper {
    font-size: 12px;
  }

  .fs-m-12 {
    font-size: 12px;
  }

  .button-group-wide {
    max-width: 100%;
  }

  .right-side-float {
    float: none;
    width: 100%;
  }

  .right-side-margin {
    margin-left: initial;
    width: 100%;
  }

  .left-side {
    width: 100%;
    display: block !important;
    text-align: center;
  }

  .button-login {
    float: none;
    width: 100%;
  }
}

.relative {
  position: relative;
}

.appender {
  position: absolute;
  cursor: pointer;
  z-index: 1;
  right: 32px;
  top: 0;
  bottom: 0;
  margin: auto;

  width: 58px;
  height: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
  right: 16px;
  background-color: white;
}

.appender .closed-eye {
  display: flex;
}

.appender .opened-eye {
  display: none;
}

.appender.opened .closed-eye {
  display: none;
}

.appender.opened .opened-eye {
  display: flex;
}

.btn.disabled,
.btn:disabled {
  opacity: 1;
  background: #f2f3f8;
  color: #a8acb6;
  cursor: not-allowed;
}

.input-wrapper {
  position: relative;
}

.input-wrapper > label {
  position: absolute;
  top: -10px;
  left: 12px;
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: 100% 12px;
  background-image: linear-gradient(to right, white, white);
  color: #9296a0;
  font-size: 12px;
  padding: 0 4px;
}

.input-wrapper > input {
  border: 2px solid #dcdee6;
  border-radius: 12px;
}

.right-side-float {
  float: right;
}

.right-side-margin {
  margin-left: auto;
}

.left-side {
  display: flex;
}

.action-link-bg {
  font-weight: 600;
  font-size: 18px;
  line-height: 20px;
}

/* Mininmum for dynamic label in border (.form-field)
<div class="form-field">
<input placeholder="">
<label>
</div>
*/
.form-field {
  position: relative;
}

.form-field label {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  pointer-events: none;
  transition: 0.3s;
  font-size: 14px;
}

.form-field input:focus + label,
.form-field input:not(:placeholder-shown) + label,
.form-field input:-webkit-autofill + label {
  top: 0;
  font-size: 12px;
  background-color: white;
  margin: 0 4px;
}

.validation-error {
  color: #e32222;
  font-size: 12px;
  line-height: 12px;
  letter-spacing: 0;
  font-weight: 600;
}

.validation-area {
  display: flex;
  background-color: #fce9e9;
  padding: 2px 0;
  margin-left: 12px;
  border-radius: 0 0 8px 8px;
  width: fit-content;
}

input:-webkit-autofill {
  -webkit-text-fill-color: black;
  background: white;
  transition: background-color 5000s ease-in-out 0s;
}

.button-login {
    float: right;
}

@media (max-width: 599px) {
  .register-page {
    display: flex;
    flex-direction: column;
  }

  .register-page .block-card {
    padding-bottom: 0;
  }

  .body-container {
    padding-bottom: 0;
  }

  .block-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    height: 100%;
    padding: 24px;
    border-radius: 24px 24px 0 0;
  }

  .pnd {
    width: 100%;
    max-width: 100%;
    padding: 16px 24px 24px;

    background-color: #fff;

    font-size: 12px;
    line-height: 18px;
  }
  .pnd a {
    font-size: 12px;
    line-height: 18px;
  }

  .block-card form {
    display: flex;
    flex-direction: column;
    flex-grow: 1;

    margin-bottom: 0;
    padding-bottom: 0;
  }

  .block-card .button-group-wide {
    margin-top: auto;
  }

  .button-group-wide {
    margin-bottom: 0 !important;
  }

  .button-group-wide-register {
    margin-top: auto;
    margin-bottom: 24px !important;
  }

    .error-container{
        margin-top: 0 !important;
    }
}
