@import url('https://fonts.googleapis.com/css2?family=Jura:wght@300..700&display=swap');

.link-image-size {
  max-width: 4%;
}

#form-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

#form-container .container {
    display: block;
    max-width: 383px;
    margin: auto;
    background: #fff;
    -webkit-box-shadow: 0 2px 6px 2px #dcdde1;
    box-shadow: 0 2px 6px 2px #dcdde1;
    padding: 40px;
}

/* Two-column login card: logo panel on the left, active form pane on the right. */
#form-container .container.login-box {
    --login-card-height: 408px;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: min(700px, calc(100vw - 32px));
    max-width: 700px;
    min-height: var(--login-card-height);
    height: auto;
    padding: 0;
    overflow: hidden;
    box-sizing: border-box;
}

/* Shared row contract keeps every pane aligned without margin-based offsets. */
.login-box .login-logo-panel {
    flex: 0 0 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0d1221;
    box-sizing: border-box;
}

.login-box .form-logo-panel {
    align-items: flex-start;
    padding-top: 141px;
}

.login-box .login-logo-panel img {
    display: block;
    width: 140px;
    height: auto;
}

.login-box .login-form-panel {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 24px 40px;
    overflow: visible;
    border: 1px solid #0d1221;
    box-sizing: border-box;
}

.login-box .error-panel {
    justify-content: center;
}

.trace-id {
    margin-top: .25rem;
    margin-bottom: 0;
    color: #6c757d;
    font-size: .75rem;
    overflow-wrap: anywhere;
}

.login-box .login-link small,
.login-box .error-panel .clearfix small {
    font-size: .9rem;
}

.login-sign-in-form,
.login-otp-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 77px minmax(40px, auto) 54px 54px 38px auto auto;
    align-content: start;
    position: relative;
    top: 0;
}

.login-sign-in-form > .login-header,
.login-otp-header {
    grid-row: 1;
    height: auto;
    min-height: 0;
    margin: 0;
}

.login-sign-in-form > .login-header p,
.login-otp-header p {
    margin-bottom: 0;
}

.login-otp-header h4 {
    margin-bottom: .25rem;
}

.login-otp-header p {
    font-size: .9rem;
    line-height: 1.2;
}

.login-error-slot {
    grid-row: 2;
    height: auto;
    min-height: 0;
}

.login-error-slot .error-message {
    margin: 0;
    padding: .25rem .75rem !important;
    white-space: normal;
    overflow-wrap: anywhere;
}

.login-email-field,
.login-code-field {
    grid-row: 3;
    margin-bottom: 0;
}

.login-password-field {
    grid-row: 4;
    margin-bottom: 0;
}

.login-sign-in-form #login-select-button,
.login-sign-in-form #login-button,
.login-otp-form #process-otp-button {
    grid-row: 5;
    align-self: start;
    width: 100%;
    height: 38px;
    margin: 0;
}

.login-sign-in-form > .login-link,
.login-otp-form > .login-link {
    margin: 0;
}

.login-sign-in-form > .login-link-primary,
.login-otp-form > .login-link-primary {
    grid-row: 6;
}

.login-sign-in-form > .login-link-secondary {
    grid-row: 7;
}

#reset-password-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 77px 40px 54px 54px 38px auto;
    align-content: start;
}

#reset-password-form > .login-reset-header {
    grid-row: 1;
    height: auto;
    min-height: 0;
    margin: 0;
}

#reset-password-form > .login-error-slot {
    grid-row: 2;
}

#reset-password-form > .login-email-field {
    grid-row: 3;
}

#reset-password-form > #reset-password-button {
    grid-row: 5;
    align-self: start;
    width: 100%;
    height: 38px;
    margin: 0;
}

#reset-password-form > .login-link-primary {
    grid-row: 6;
    margin: 0;
}

#reset-password-form > .login-reset-header h4 {
    margin-bottom: .25rem;
}

#reset-password-form > .login-reset-header p {
    margin-bottom: 0;
    font-size: .9rem;
    line-height: 1.2;
}

#password-reset-info {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
}

.password-reset-confirmation {
    display: grid;
    grid-template-rows: 117px 54px auto;
    align-content: start;
    padding: 0 !important;
}

.password-reset-confirmation-header {
    height: auto;
    min-height: 0;
    margin: 0;
}

.password-reset-confirmation-message {
    grid-row: 2;
}

.password-reset-confirmation-message p {
    margin: 0;
}

.password-reset-confirmation .login-link-primary {
    grid-row: 3;
    margin: 0;
}

#password-change-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 77px 40px 54px 54px 38px auto;
    align-content: start;
}

#password-change-form > .password-change-header {
    grid-row: 1;
    height: auto;
    min-height: 0;
    margin: 0;
}

#password-change-form > .password-change-header h4 {
    margin-bottom: .25rem;
}

#password-change-form > .login-error-slot {
    grid-row: 2;
    overflow: hidden;
}

#password-change-form > .password-change-password-field {
    grid-row: 3;
    margin-bottom: 0;
}

#password-change-form > .password-change-password-field,
#password-change-form > .password-change-confirm-field {
    min-width: 0;
}

#password-change-form .password-change-field-hint {
    height: 16px;
    overflow: hidden;
    visibility: hidden;
    color: #dc3545;
    font-family: Tahoma, sans-serif;
    font-size: .75rem;
    line-height: 16px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

#password-change-form .password-change-field-hint.visible {
    visibility: visible;
}

#password-change-form .password-change-invalid {
    border-color: #dc3545 !important;
}

#password-change-form > .password-change-confirm-field {
    grid-row: 4;
    margin-bottom: 0;
}

#password-change-form > #password-change-button {
    grid-row: 5;
    align-self: start;
    width: 100%;
    height: 38px;
    margin: 0;
}

#password-change-form > .login-link-primary {
    grid-row: 6;
    margin: 0;
}

#password-change-info {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
}

#password-change-info .password-change-confirmation {
    display: grid;
    grid-template-rows: 117px 54px auto;
    align-content: start;
    padding: 0 !important;
}

#password-change-info .password-change-confirmation-header {
    height: auto;
    min-height: 0;
    margin: 0;
}

#password-change-info .password-change-confirmation-message {
    grid-row: 2;
}

#password-change-info .password-change-confirmation-message p {
    margin: 0;
}

#password-change-info .login-link-primary {
    grid-row: 3;
    margin: 0;
}

@media (max-width: 640px) {
    #form-container .container.login-box {
        width: min(100%, 480px);
        height: auto;
        min-height: 0;
        flex-direction: column;
    }

    .login-box .login-logo-panel {
        flex: 0 0 96px;
        padding: 16px;
    }

    .login-box .form-logo-panel {
        align-items: center;
        padding-top: 16px;
    }

    .login-box .login-form-panel {
        padding: 24px;
    }
}

.form-control {
    border-radius: 0 !important;
    color: #333 !important;
}

.form-control:focus {
    box-shadow: none !important;
    color: #333 !important;
}

.alert {
    border-radius: 0 !important;
    padding: .5rem 1.25rem !important;
}

.btn {
    border-radius: 0 !important;
}

body {
    font-family: Jura,sans-serif;
    font-weight: 500;
    color: #000;
}

.body-hidden {
    display: none;
}

hr {
    border-top: 2px solid #ff1a97;
    margin-top: 1rem;
    margin-bottom: 1rem;
    box-sizing: content-box;
    height: 0;
    overflow: visible;
}

a, a:hover, a:visited {
    color: #ff1a97;
}