﻿body,
html {
  background: #FFF;
  height: 100%;
  overflow-x: hidden;
}

main {
  background: white;
  height: inherit;
  position: absolute;
  display:flex;
  flex-wrap: wrap;
  width: 100%;
}

.content {
  border: 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  flex-direction: column;
  height: 100%;
  width: 100%;
  position: relative;
}

.content-block {
    background: #2857810D;
    padding: 20px;
    border-radius: 8px;
    max-width: 472px;
    width: 100%;
    &.no-background {
      background: none;
    }
    .welcome-text {
      font-size: 28px;
      margin-block-end: 14px;
    }
}

.brand-container {
    background: var(--brand-color);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    width: 100%;

    .brand-logo {
        width: 100%;
        max-width: 400px;
    }

    .contact {
        position: absolute;
        bottom: 0;
        width: 100%;
        min-height: 45px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        padding-inline: 20px;
        gap: 12px;
    }

    .brand-info,
    .powered-by {
        display: flex;
        align-items: center;
        flex-shrink: 1;
        min-width: 0;
    }

    .powered-by {
        margin-right: -15px;
    }

    .brand-info a {
        color: #fff;
        font-size: 15px;
        font-weight: normal;
        white-space: nowrap;
    }

    .powered-by img {
        width: 250px;
        max-width: 100%;
    }
}

.block-container {
  background: #FFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  &:has(.choice-block) {
      justify-content: flex-start;
  }
}

form#account {
  margin-block-end: 25px;
} 

#password-confirmation-message {
  margin: 0;
}

.input-field {
  margin-block-start: 20px;
  position: relative;
  display: inline-flex;
  width: 100%;
  flex-direction: column;

  input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]), select {
    padding: 12px;
    border: 0;
    border-radius: 8px;
    background-color: #fff;
    border: 1px solid #80808066;
    height: 40px;
    -webkit-appearance: none;
    appearance: none;
  }

  &:first-of-type {
      margin-block-start: 0;
  }
}

.hr-text {
  position: relative;
  outline: 0;
  border: 0;
  color: black;
  text-align: center;
  &:before {
    content: '';
    background: #D9D9D9;
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
  }
  &:after {
    content: attr(data-content);
    position: relative;
    display: inline-block;
    color: black;
    padding: 0 .5em;
    color: #000;
    background-color: #fcfcfa;
    top: -8px;
  }
}

span.text-danger.field-validation-error {
  font-size: 13px;
  padding: 5px 0 0 0;
  color: red;
  font-weight: bold;
}

.text-danger.validation-summary-errors {
    background: #d75653;
    padding: 13px;
    border-radius: 4px;
    ul {
      margin: 0; 
      padding: 0;
      li {
          min-height: initial;
          color: #fff;
          font-size: 12px;
          font-weight: bold;
          background: none;
          padding: 0;
    }
  }
}


a {
  background: transparent;
  color: var(--brand-color);
  text-decoration: none;
  font-weight: bold;
  font-size: 13px;
  margin: 4px 0;
  text-transform: none;
}

a.disabled {
    pointer-events: none;
    cursor: default;
    color: grey !important;
    &::before
        {
            background-color: grey !important;
        }
}

.login-extra-options {
  display: flex;
  justify-content: space-between;
  margin-block: 20px;
}

.remember-checkbox {
  display: flex;
  flex-direction: row;
  align-items: center;
  input[type="checkbox"] {
    margin-inline-end: 5px;
  }
  label {
    padding: 0;
  }
}

.login-methods {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: center;
  gap: 15px;
  padding-block-start: 11px;
}

.button.auth-button {
  border: 1px solid #000;
  border-radius: 68px;
  color: #000;
  font-weight: bold;
  font-size: 12px;
  padding: 8px;
  margin: 0;
  text-decoration: none;
  background-color: #FFF;
  margin-bottom: 3px;
  flex-basis: 134px;
  height: 40px;
  &:hover,
  &:focus {
    border-radius: 68px;
    cursor: pointer;
  }
}

#login-submit {
    font-size: 15px;
    padding: 8px 20px;
    display: block;
    height: 40px;
    border-radius: 68px;
    width: 100%;
}

.password-toggle-icon {
  transform: translateY(-50%);
  cursor: pointer;
}

.password-toggle-icon i {
  font-size: 18px;
  line-height: 1;
  color: #333;
  transition: color 0.3s ease-in-out;
  position: absolute;
}

.password-toggle-icon i:hover {
  color: #000;
}

i.fas.fa-eye {
    right: 14px;
    top: -28px;
}

i.fas.fa-eye-slash {
    right: 13px;
    top: -28px;
}

details {
  overflow: hidden;
  > ul {
      display: grid;
      grid-template-rows: 0fr;
      transition: grid-template-rows 300ms ease, opacity 200ms ease;
      opacity: 0;
       transform: translateY(-4px);
  }
}

details > summary {
  list-style: none;
  padding: 20px;
  position: relative;
  z-index: 1;
}

details > summary::-webkit-details-marker {
  display: none;
}

details[open] .toggle-icon {
  transform: rotate(180deg);
  transition: transform 250ms ease;
}

details[open] > ul {
  grid-template-rows: 1fr;
  opacity: 1;
  transform: translateY(0);
}

.choice-block {
  display: flex;
  flex-direction: column;
  max-width: 472px;
  width: 100%;
  margin-top: calc(50vh - 225px);
  .choice-text {
      font-size: 28px;
      margin-block-end: 14px;
  }

  ul {
    overflow-y: auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0px 15px 20px 15px;
  }
}
  
li {
  display: flex;
  align-items: center;
  border-radius: 4px;
  list-style-type: none;
  background: #28578126;
  min-height: 48px;
  padding: 0px;
  &:hover {
    background: #28578147;
    i {
      color: var(--brand-color);
    }
  }
a {
    font-size: 14px;
    color: #000;
    display: inline-block;
    font-weight: 400;
    text-decoration: none;
    text-transform: none;
    vertical-align: middle;
    border: 0;
    border-radius: 0;
    background-color: transparent;
    margin: 0;
    width: 100%;
    padding: 16px 30px 16px 16px;
    position: relative;
    &:hover i {

      color: var(--brand-color);
    }
    .fa-angle-right
    {
        color: var(--brand-secondary-color);
        margin-inline-end: 10px;
        margin-block-start: 3px;
    }
    .fa-arrow-right {
      position: absolute;
      right: 15px;
      top: 18px;
      }
  }
}

.application-list {
    cursor: pointer;
    background: #2857810D;
    border-radius: 8px;
    max-width: 472px;
    margin-block: 15px;
    &:first-of-type {
      margin-block-start: 0;
    }
    &:last-of-type {
      margin-block-end: 0;
    }
}
.app-header {
    display: flex;
    font-size: 18px;
    justify-content: space-between;
    align-items: center;
    margin: 0;
}
span.app-info {
    display: flex;
    .fa-angle-down
    {
        color: var(--brand-secondary-color);
        font-size: 25px;
    }
}
span.app-count {
    display: flex;
    font-size: 12px;
    align-items: center;
    background: var(--brand-secondary-color);
    color: #fff;
    padding: 4px 10px;
    border-radius: 32px;
    margin-inline-end: 20px;
}
.choice-actions {
    display: flex;
    justify-content: space-between;
    flex-direction: row-reverse;
    margin-block-start: 10px;
}

.message-container{
    width: 100%;
    bottom: 60px;
    justify-content:center;
    position:absolute;
    display: flex;
    pointer-events: none;
    max-width: 90%;
}

#password-rules {
    opacity: 0;
    width: 100%;
    max-width: 375px;
    background-color: rgba(85, 85, 85, 0.8);
    color: #f9f64e;
    border-radius: 6px;
    padding-block: 8px;
    padding-inline: 10px;
    z-index: 1;
    transition: opacity 0.2s ease-in-out;

    ul {
      padding: 0;
      margin: 0;
      li {
        background: none;
        color: #FFF;
        min-height: 30px;
      }
    }

    i {
        margin-block-end: 7px;
        align-self: center;
    }

    .valid:before {
        position: relative;
        content: "\2705";
        color: green;
    }

    .invalid:before {
        position: relative;
        content: "\274C";
    }
}

.sr-status {
    position: absolute;
    left: -9999px;
}

#password-rules {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);
  transition: all 0.25s ease;
}

#password-rules.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

input#input-new-password,
input#input-confirm-password,
input#input-password {
  &.valid  {
    border-bottom: 2px solid green;
  }  
}

input#input-new-password,
input#input-confirm-password,
input#input-password {
  &.invalid {
    border-bottom: 2px solid red;
  }
}

.password-heading {
    max-width: 472px;
    width: 100%
}

@media only screen and (min-width: 551px) {
 .brand-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 50%;
    height: 100vh;
 }
 .block-container {
    width: 50%;
    margin-left: 50%;
    padding: 20px;
    min-height: 100vh;
    box-sizing: border-box;
 }
}

@media (max-width: 1024px) {
    .contact {
        justify-content: center;
    }

    .brand-info,
    .powered-by {
        width: 100%;
        justify-content: center;
    }

    .powered-by {
        margin-bottom: 10px;
    }
}

@media only screen and (max-width: 550px) {
    main {
        display: block;
    }

    .content-block {
        max-width: 100%;
    }

    .brand-container {
        max-height: 200px;
        flex-direction: column;
        .brand-logo {
            max-width: 200px;
        }

        .contact {
            position: initial;
            height: initial;
            display: flex;
            align-items: center;
            flex-direction: column-reverse;
        }

        .brand-info {
            margin: 0 20px;
            position: initial;
        }

        .powered-by {
            margin: 0 20px;
            position: initial;
        }
    }
    .choice-block {
        margin-top: 0;
    }
    .block-container {
        padding: 20px;
        justify-content: flex-start;
    }
}

