/*
 * The shared sign-in stylesheet centres <main> with align-items: center, which
 * pushes a card taller than the viewport above the top edge where it cannot be
 * scrolled to. Auto margins centre it the same way but stop at zero.
 */
body {
    align-items: flex-start;
}

main {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: auto 0;
    padding: 0 16px;
    box-sizing: border-box;
}

.auth-card {
    display: flex;
    width: 100%;
    max-width: 1000px;
    min-height: 687px;
    box-sizing: border-box;

    overflow: hidden;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 16px 45px rgba(17, 26, 79, 0.16);
}

.auth-card-brand {
    position: relative;
    flex: 0 0 50%;
    min-width: 0;
    overflow: hidden;
    background-color: #111a4f;
}

.auth-card-content {
    display: flex;
    flex: 1 1 50%;
    align-items: flex-start;
    justify-content: center;

    min-width: 0;
    padding: 140px 64px 64px;
    box-sizing: border-box;
    background-color: #fff;
}

.auth-card-content .form-signin {
    width: 100%;
    max-width: 400px;
    min-width: 0;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.auth-card-artwork {
    position: absolute;
    inset: 0;
    z-index: 1;

    width: 100%;
    max-width: none;
    height: 100%;
    /* Fills the panel when the card is not exactly 1000x687; the artwork's
       shapes start at its left edge, so any crop falls on the right. */
    object-fit: cover;
    object-position: left center;
}

.form-signin .auth-forgot-password {
    display: block;
    width: fit-content;
    margin-top: 12px;
    margin-right: 0;
    margin-left: auto;

    color: #2076f9;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    text-decoration: none;
}

.form-signin .auth-forgot-password:hover,
.form-signin .auth-forgot-password:focus {
    color: #165fc5;
    text-decoration: underline;
}

.auth-card-title {
    margin: 0 0 10px;
    font-size: 25pt;
    font-weight: 500;
    line-height: 1.2;
}

.auth-card-description {
    margin: 0 0 30px;
    color: #747988;
    font-size: 12pt;
    line-height: 1.5;
}

.auth-card-content .form-group {
    margin-bottom: 22px;
    font-size: 10pt;
}

.auth-card-content label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.auth-card-content .form-control {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 44px;
    box-sizing: border-box;

    border: 1px solid #cccccc;
    border-radius: 8px;
    background-color: #ffffff;
    color: #000000;
    padding-top: 10px;
    padding-bottom: 10px;
}

/*
 * This scoped rule is required because the original shared
 * qomplypi_signin.css rules set individual input corners to zero.
 * It keeps the redesigned login and reset fields fully rounded.
 */
.auth-card-content .form-signin input.form-control {
    border-radius: 8px;
}

.auth-card-content .form-control::placeholder {
    color: #9a9a9a;
    font-size: 14px;
    font-weight: 400;
    opacity: 0.8;
}

.auth-input-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.auth-input-icon {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 14px;

    width: 20px;
    height: 20px;

    transform: translateY(-50%);
    object-fit: contain;
    pointer-events: none;
}

.auth-input-wrapper .form-control {
    padding-left: 46px;
}

.auth-pw-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.auth-pw-icon {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 14px;

    width: 20px;
    height: 20px;

    transform: translateY(-50%);
    object-fit: contain;
    pointer-events: none;
}

.auth-pw-wrapper .form-control {
    padding-left: 46px;
    padding-right: 50px;
}

.form-signin button.auth-password-toggle[type="button"] {
    position: absolute;
    z-index: 3;
    top: 50%;
    right: 10px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 36px;
    height: 36px;
    padding: 0;
    margin: 0;

    transform: translateY(-50%);
    background: transparent;
    border: 0;
    box-shadow: none;
    cursor: pointer;
}

.auth-password-toggle-icon {
    display: block;
    width: 20px;
    height: 20px;
    object-fit: contain;
    pointer-events: none;
}

.auth-submit {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 44px;
    box-sizing: border-box;
}

.form-signin button.auth-submit[type="submit"] {
    width: 100%;
    min-height: 44px;

    background-color: #1D74F9 !important;
    border: 1px solid #1D74F9 !important;
    background-image: none !important;
    border-radius: 8px;

    color: #ffffff;
    box-shadow: none;

    font-size: 14px;
    font-weight: 500;
    text-transform: none;
    box-sizing: border-box;
    margin-left: 0;
    margin-right: 0;
}

.auth-support {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 4px;

    width: 100%;
    margin-top: 16px;

    color: #000000;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    white-space: nowrap;
}

.auth-support-text {
    display: inline-block;
    width: fit-content;
    margin: 0;

    color: #0D0D0D;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    text-decoration: none;
}

.form-signin .auth-support-link {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin: 0;

    color: #1E74F9;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    text-decoration: none;
}

.form-signin .auth-support-link:hover,
.form-signin .auth-support-link:focus {
    color: #165fc5;
    text-decoration: underline;
}

.auth-support-icon {
    display: block;
    flex: 0 0 auto;
    width: 12px;
    height: 12px;
    object-fit: contain;
    pointer-events: none;
}

.auth-reset-divider {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 18px 0 12px;

    color: #747988;
    font-size: 14px;
    font-weight: 400;
}

.auth-reset-divider::before,
.auth-reset-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: #d9d9d9;
}

.auth-reset-divider span {
    padding: 0 10px;
}

.form-signin .auth-back-login {
    display: block;
    width: fit-content;
    margin: 0 auto;

    color: #1e74f9;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
}

.form-signin .auth-back-login:hover,
.form-signin .auth-back-login:focus {
    color: #165fc5;
    text-decoration: underline;
}

.auth-errors {
    margin-bottom: 20px;
    padding: 12px;
    color: #b42318;
    background-color: #fff4f2;
    border: 1px solid #fecdca;
    border-radius: 4px;
}

.auth-errors p {
    margin: 0;
}

.form-signin .auth-errors p,
.form-signin .messages p {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
}

/* Overrides the shared 10px orange .error so messages match the error box. */
.auth-card-content .messages p {
    margin: 0 0 20px;
    padding: 12px;
    color: #1f2a44;
    background-color: #f2f6fe;
    border: 1px solid #c9dafc;
    border-radius: 4px;
}

.auth-card-content .messages p.error {
    color: #b42318;
    background-color: #fff4f2;
    border-color: #fecdca;
}

.auth-card-content .messages p.success {
    color: #05603a;
    background-color: #ecfdf3;
    border-color: #a6f4c5;
}

/* Below this width the artwork panel would be cropped noticeably, so the
   card drops to the form alone. */
@media (max-width: 991.98px) {
    .auth-card {
        max-width: 500px;
        min-height: 0;
    }

    .auth-card-brand {
        display: none;
    }

    .auth-card-content {
        padding: 40px 24px;
    }
}