.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  transition: opacity 0.3s;
  opacity: 0;
}

button {
  display: inline-block;
  border: none;
  font-family: inherit;
  margin: 0;
  line-height: 1.15;
  overflow: visible;
  text-transform: none;
  -webkit-appearance: button;
  cursor: pointer;
  text-align: center;
}

body {
  margin: 0;
  background: #F6F6F6;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --clr-dark: #1b262c;
  color: var(--clr-dark);
}

main {
  padding: 10vh 1rem 0;
  display: grid;
  grid-template: 0.5fr 65px / 2fr minmax(200px, 800px) 2fr;
  align-content: center;
  z-index: 999999999999999999;
  transition: opacity 0.3s, transform 0.3s;
  transform: translateY(50px);
  opacity: 0;
  position: relative;
  max-width: 800px;
  margin: auto;
}


.terms-and-conditions {
    grid-column: 2 / 3;
    grid-row: 1;
    height: 60vh;
    margin: 0 auto;
    max-width: 800px;
    padding: 2em;
    overflow-y: scroll;
    border-radius: 5px 5px 0px 0px;
    background-color: #fff;
    border: solid #f3f5fa;
    border-width: 15px 0px 0px 15px;
}

.term-buttons-container {
  grid-row: 2;
  grid-column: 2 / 3;
  display: flex;
  flex-direction: column;
  margin-top: -25px;
  padding: 0.7em;
  z-index: 1;
  border-top: 1px solid rgb(243, 243, 243);
  background-color: #f3f5fa;
  border-radius: 0 0 5px 5px;
}

.scroll-to-bottom {
  justify-self: start;
  align-self: center;
  margin-top: -23px;
  padding: 0.5em;
  font-size: 1rem;
  border-radius: 50%;
  background-color: #01a3ad8A;
  box-shadow: 0px 10px 15px -6px rgba(0, 0, 0, 0.2);

}

[name="terms-and-conditions-form"] {
    justify-self: center;
    align-self: center;
    margin-top: 12px;
}

.accept-button {
  background-color: #537ec5;
  padding: 0.7em 1.5em;
  font-size: 0.95rem;
  color: var(--clr-white);
  border-radius: 5px;
  box-shadow: 0px 10px 15px -6px rgba(0, 0, 0, 0.2);
  &:hover {
    background: var(--clr-dark-blue);
  }

  &[aria-hidden="true"] {
    display: none;
  }
}

.modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 99999999999999;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.container {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: auto;
    display: flex;
    background: #ffffff;
    box-shadow: 0 0 15px rgba(0, 0, 0, .1);
    margin: 2rem 0;
}

.wrapper {
    margin: 0 auto;
    width: 100%;
    max-width: 1140px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.col-left,
.col-right {
    padding: 45px;
    display: flex;
    width: 50%;
}

.col-left {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #01a3ad;
    -webkit-clip-path: polygon(98% 17%, 100% 34%, 98% 51%, 100% 68%, 98% 84%, 100% 100%, 0 100%, 0 0, 100% 0);
    clip-path: polygon(98% 17%, 100% 34%, 98% 51%, 100% 68%, 98% 84%, 100% 100%, 0 100%, 0 0, 100% 0);
}

.col-right {
    flex-direction: column;
}

@media (max-width: 768px) {
    .wrapper {padding: 1rem;width:auto!important;}
    .container {
        flex-direction: column;
        margin: 0;
    }

    .col-left, .col-right {
        width: auto;
        padding: 20px;
        -webkit-clip-path: polygon(0 0, 100% 0, 100% 98%, 84% 100%, 68% 98%, 51% 100%, 34% 98%, 17% 100%, 0 98%);
        clip-path: polygon(0 0, 100% 0, 100% 98%, 84% 100%, 68% 98%, 51% 100%, 34% 98%, 17% 100%, 0 98%);

    }

    .col-left {
        
    }

    .login-form input[type="text"], .login-form input[type="password"] {
        width: 94%!important;
    }
    .login-text img {
        width: 100px;
        margin: auto;
        display: block;
    }

    .login-form img {
        margin-top: 2px!important;
        margin-right: -4px!important;
    }

    .login-help {
        margin-left: 10%!important;
        margin-top: 8%!important;
    }

    .btn.login-submit {
        margin: auto!important;
        width: 100%!important;
        margin-top: 16px!important;
    }

    .btn.accept-button {
        margin-top: -2px!important;
    }

    .terms-and-conditions {margin: unset!important;border-right-width: 15px;padding: 1.3em;}
    .terms-and-conditions h1 {font-size:1.1em;text-align: center;}
    .terms-and-conditions p, .terms-and-conditions ol {font-size: 14px;text-align: justify;}
    .terms-and-conditions p#last {font-size: 14px;text-align: center;}
    .modal-close {margin-top: -17px;margin-right: -9px;}
    .label--checkbox .checkbox:checked + span::after {
        left: 65px!important;
        top: 508px!important;
    }
    .credit {font-size: 14px;}
}

@media only screen and (min-width: 666px) and (max-width: 736px) { 
    .label--checkbox .checkbox:checked + span::after{
        left: 34px!important;
        top: 504px!important;
    }

    .login-help {        
        margin-left: 6%!important;
    }
}

@media only screen and (min-width: 414px) and (max-width: 666px) { 
    .label--checkbox .checkbox:checked + span::after{
        left: 51px!important;
        top: 507px!important;
    }

    .login-help {        
        margin-left: 6%!important;
    }
}

@media only screen and (min-width: 376px) and (max-width: 414px) { 
    .label--checkbox .checkbox:checked + span::after{
        left: 44px!important;
        top: 507px!important;
    }

    .login-help {        
        margin-left: 4%!important;
    }
}

@media only screen and (min-width: 360px) and (max-width: 376px) { 
    .label--checkbox .checkbox:checked + span::after{
        left: 34px!important;
        top: 504px!important;
    }

    .login-help {        
       margin-left: 1%!important;
    }
}

@media only screen and (min-width: 320px) and (max-width: 360px) { 
    .label--checkbox .checkbox:checked + span::after{
        left: 22px!important;
        top: 503px!important;
    }

    .login-help {        
       margin-left: -3%!important;
    }
}

.login-text p {
    color:#FFF;    
    line-height: 26px;
    font-size: 18px;
    text-align: center;
    text-shadow: 0px 2px 3px rgba(0,0,0,0.4), 0px 2px 4px rgba(0,0,0,0.1), 0px 2px 4px rgba(0,0,0,0.1);
}
.login-text img {
    margin-bottom: 1rem;
    padding: 0px 25%;
}

.login-form h2 {
    margin-bottom: 1rem;
}

.login-form p {
    margin-bottom: 1rem;
}

.login-form input[type="text"], 
.login-form input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    height: 24px;
    font-size: 16px;
    margin-bottom: 5px;
    transition: outline .15s;
}

.login-form input[type="text"]:focus, 
.login-form input[type="password"]:focus {outline: 1px solid #01a3ad;}

.login-form img {    
    width: 77px;
    float: right;
    margin-top: -29px;
    margin-right: -27px;
    opacity: 1;
}
.login-help {
    margin-bottom: 1rem;
}

.label--checkbox {
    display: flex;
    align-items: center;
}

.checkbox {
    margin-right: 0.5rem;
    display: none;
}

.btn.login-submit {
    background: #01a3ad;
    border: none;
    padding: 10px 15px;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
    font-size: 16px;
}
.btn.login-submit:disabled {
    opacity:0.4;
    cursor: not-allowed;
}
.btn.login-submit:hover {
    background: #01a3adf0;
}
.error-message { 
    background: #fff3f3; 
    border: solid 1px #d9534f; 
    border-left: solid 10px #d9534f; 
    border-radius: 5px; 
    padding: 20px; color: #d9534f;
    display: block;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.5s ease-out, opacity 0.5s ease-out;
}

.show-error {
    max-height: 50px;
    opacity: 1;
}

.credit {
    text-align: center;
    margin-top: 1rem;
    color: #a1a1a1;
}

.modal-close {
    height: 20px;
    width: 20px;
    display: block;
    cursor: pointer;
    color: #bbb5b5;
    float: right;
    font-size: 24px;
}
.a-link {text-decoration:none;color:#01a3ad;}
.a-link:hover, .a-link:active, .a-link:focus {color:#233c68;}}

.checkbox {
    display: none;
}

.label--checkbox .checkbox + span::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 1px solid #ccc;
    border-radius: 3px;
    margin-right: 8px;
    vertical-align: middle;
    transition: background-color 0.3s;
    position: relative;
    margin-top: -4px;
    cursor: pointer;
}

.label--checkbox .checkbox:checked + span::before {
    background-color: #01a3ad;
}

.label--checkbox .checkbox:checked + span::after {
    content: "\f00c";
    font-family: FontAwesome;
    position: absolute;
    font-size: 10px;
    color: white;
    left: 456px;
    top: 249px;
    transform: translate(-50%, -50%);
}
