﻿body {
    padding-top: 50px;
    padding-bottom: 20px;
    background-color: #EEE;
    height: 100%;
    width: 100%;
}

.password-error {
    white-space: pre-wrap;
}


.wrapper {
    height: 100%;
    width: 100%;
}

.body-content .card {
    position: absolute;
    left: 0;
    right: 0;
    top: 10%;
}

.display-contents {
    display: contents;
}

.card {
    padding: 30px 30px;
    background-color: white;
    box-shadow: 0 10px 10px 0 rgba(0,0,0,.25);
    border: 1px solid black; /* Fallback colour */
    border: 1px solid rgba(0,0,0, .125);
}

.card {
    max-width: 768px;
}


.footer-content {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    font-size: small;
    background-color: transparent;
}

.card-footer-content {
    font-size: small
}

.generic-header {
    height: 30px;
    background-position: 50%;
    background-repeat: no-repeat;
    background-size: contain;
    margin: 0 5px;
    background-color: lightgray;
    font-size: large;
    vertical-align: middle;
}

.padding-bottom1 {
    padding-bottom: 1px;
}

.btn {
    min-width: 100px;
}

.form-group.required .control-label:after {
    content: "*";
    color: red;
}

.text-wrap {
    overflow-wrap: break-word;
}

.lpad-0 {
    padding-left: unset;
}

.nohover:hover {
    color: inherit;
}

.grid-center {
    display: grid;
    justify-content: center;
    align-items: center;
}

.card-container,
.form-content,
.form-fieldset,
.form-fieldset-row,
.form-fieldset-no-gap,
.form-action {
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    text-decoration: none;
    display: flex;
}

.card-container {
    grid-row-gap: 20px;
    background-color: #fff;
    border: 1px solid #d8d8d8;
    border-radius: 5px;
    max-width: 432px;
    padding: 40px 50px;
    box-shadow: 0 37px 81px rgba(0, 0, 0, .05), 0 147px 147px rgba(0, 0, 0, .04), 0 330px 198px rgba(0, 0, 0, .03), 0 586px 235px rgba(0, 0, 0, .01), 0 916px 257px rgba(0, 0, 0, 0);
}

.form-logo {
    vertical-align: middle;
    max-width: 100%;
    display: inline-block;
}

.form-content {
    grid-row-gap: 20px;
}

.form-fieldset {
    grid-row-gap: 4px;
}

.form-fieldset-row {
    flex-direction: row;
    grid-column-gap: 10px;
}

.form-fieldset-no-gap {
    grid-row-gap: 0px;
}

.form-action {
    grid-row-gap: 20px;
    align-items: center;
}

.form-action > a {
    width: 100%;
    text-align: center;
    color: var(--primaryColor);
    font-size: 14px;
    font-weight: 300;
    text-decoration: underline;
}

.form-action > a.btn {
    color: #fff;
}

.form-text-title {
    color: #1d1d1d;
    margin-top: 0;
    margin-bottom: 0;
    font-size: 20px;
    font-weight: 400;
    line-height: 120%;
    text-decoration: none;
}

.form-text {
    color: #595959;
    margin-top: 0;
    margin-bottom: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    text-decoration: none;
}

.form-fieldset > label {
    color: #364152;
    margin-top: 0;
    margin-bottom: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    text-decoration: none;
}

.form-fieldset.required > label:after {
    content: "*";
    color: #f00
}

.card-links {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}


.form-fieldset-text-input {
    display: block;
    width: 100%;
    color: #495057;
    background-color: #fff;
    border: 1px solid #cfd8e3;
    padding: 9px 13px;
    border-radius: 6px;
    transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

input::placeholder {
    color: #898989;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    text-decoration: none;
    font-style: normal;
}

#qrCode {
    border-radius: 5px;
    background-color: white;
    padding: 7% 0;
    width: 70%;
    display: inline-block;
    text-align: center;
}

.w-full {
    width: 100%
}

.mb-0 {
    margin-bottom: 0;
}

@media screen and (max-width: 479px) {
    .body-content {
        justify-content: center;
        align-items: flex-start;
        height: 100vh;
    }

    .card-container {
        box-shadow: none;
        border-style: none;
        justify-content: flex-start;
        align-items: flex-start;
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Password visibility toggle */
.password-input-wrapper {
    position: relative;
    width: 100%;
}

/* min-width/min-height keep the button at the WCAG 2.2 AA SC 2.5.8 minimum
   target size (24x24) even though the icon inside it is 20x20. */
.password-toggle-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    min-height: 24px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #898989;
    line-height: 1;
}

.password-toggle-btn:hover {
    color: #495057;
}

.password-toggle-btn:focus {
    outline: 2px solid var(--primaryColor, #52ADB9);
    outline-offset: 2px;
    border-radius: 2px;
}

.password-toggle-btn .eye-icon-open {
    display: none;
}

.password-toggle-btn .eye-icon-closed {
    display: inline;
}

/* Prevent typed text from sliding under the icon */
.password-input-wrapper > .form-fieldset-text-input,
.password-input-wrapper > .form-control,
.password-input-wrapper > .text-field {
    padding-right: 2.5rem;
}

/* Hide Edge Reveal password button */
input::-ms-reveal,
input::-ms-clear {
    display: none;
}
