@import url("https://fonts.googleapis.com/css?family=Lato:400,400italic,300,700");
@import url("https://fonts.googleapis.com/css?family=Open+Sans+Condensed:300,700");

:root {
    --customBackgroundColor: #00c0f3;
    --customDarkBackgroundColor: #00a7d5;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body {
    color: #4d4d4d;
    font-family: "Lato", sans-serif;
    font-size: 14px;
    line-height: 1.42857143;
}
a { color: var(--customBackgroundColor); text-decoration: none; outline: 0 !important; }
a:hover, a:focus { color: var(--customDarkBackgroundColor); text-decoration: underline; }
p { margin: 0 0 10px; }
.registration {
    min-height: 100vh;
    background: url("../img/register-bg.jpg") no-repeat center;
    background-size: cover;
    position: relative;
    overflow: auto;
}
.registration .valign {
    min-height: 100vh;
    display: table;
    width: 100%;
    padding: 30px;
    background: rgba(42, 107, 155, 0.3);
}
.registration .align { display: table-cell; vertical-align: middle; }
.registration .box {
    position: relative;
    width: 750px;
    max-width: 100%;
    padding: 50px;
    margin: 0 auto;
    z-index: 1;
    box-shadow: 0 0 18px 4px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    background: #fff;
}
.registration .step-title {
    color: #676767;
    font-size: 24px;
    line-height: 1.1;
    font-weight: 400;
    text-align: center;
    margin: 0 0 35px;
}
.registration .step-title .ci-logo {
    display: inline-block;
    width: 42px;
    height: 28px;
    margin: 0 10px -6px 0;
    background: url("../img/logo.png") no-repeat;
    background-size: contain;
}
.front .box { background: rgba(255, 255, 255, 0.9); text-align: center; }
.front .box .form { padding: 0 50px; }
.front.login .box .form { padding: 0 20px; }
.patient-portal-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 28px;
    padding: 16px 18px;
    border-radius: 6px;
    background: #c9f2fc;
    color: #3f5157;
    font-size: 16px;
    text-align: left;
}
.patient-portal-notice .notice-icon {
    display: inline-flex;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--customBackgroundColor);
    color: #fff;
    font-size: 16px;
}
.form-group { margin-bottom: 15px; position: relative; }
.form-group.floating label {
    display: block;
    margin: 0 0 3px;
    color: #676767;
    font-weight: 400;
    text-align: left;
}
.form-control {
    display: block;
    width: 100%;
    height: 42px;
    padding: 9px 12px;
    font-size: 14px;
    line-height: 1.42857143;
    color: #4d4d4d;
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
}
.form-control:focus { border-color: var(--customBackgroundColor); outline: 0; }
.form-group.error .form-control { border-color: #d41414; }
.form-group .msg {
    display: block;
    margin-top: 6px;
    color: #d41414;
    font-size: 12px;
    text-align: left;
}
.controls { margin-top: 20px; }
.text-center { text-align: center; }
.btn {
    display: inline-block;
    min-width: 80px;
    margin-bottom: 0;
    text-align: center;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 4px;
}
.btn-form {
    padding: 13px 30px;
    color: #fff !important;
    background: var(--customBackgroundColor);
    border-color: var(--customBackgroundColor);
    font-family: "Open Sans Condensed", sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}
.btn-form:hover, .btn-form:focus {
    color: #fff;
    background: var(--customDarkBackgroundColor);
    border-color: var(--customDarkBackgroundColor);
    text-decoration: none;
}
.login-form .controls .login-button { margin-bottom: 10px; }
.keycloak-login .keycloak-instruction { margin: -15px 0 25px; color: #676767; }
.keycloak-message {
    margin: -10px 0 20px;
    padding: 10px 12px;
    border-radius: 4px;
    background: #e7f8fc;
    color: #3f5157;
    text-align: left;
}
.keycloak-message.error { background: #fdeaea; color: #b10f0f; }
.field-hint {
    display: block;
    margin-top: 6px;
    color: #676767;
    font-size: 12px;
    text-align: left;
}
.password-action-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 312px;
    margin: 20px auto 0;
}
.login-form .controls.password-action-row .btn-form {
    display: inline-flex;
    flex: 1 1 150px;
    min-width: 140px;
    max-width: 180px;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    margin: 0;
}
.otp-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.otp-button-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    width: 100%;
}
.login-form .controls .otp-button-row .btn-form { width: 100%; margin: 0; }
.login-form .controls.otp-actions > .login-button { margin-bottom: 0; }
.btn-form-secondary {
    color: #4d4d4d !important;
    background: #fff;
    border-color: #a9a9a9;
}
.btn-form-secondary:hover,
.btn-form-secondary:focus {
    color: #333 !important;
    background: #f2f2f2;
    border-color: #777;
}
.otp-link-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 28px;
}
.otp-edit-link,
.otp-resend-link {
    appearance: none;
    -webkit-appearance: none;
    padding: 4px;
    border: 0;
    background: transparent;
    color: var(--customBackgroundColor);
    cursor: pointer;
    font: inherit;
    text-decoration: underline;
}
.otp-edit-link:hover,
.otp-edit-link:focus,
.otp-resend-link:hover,
.otp-resend-link:focus { color: var(--customDarkBackgroundColor); }
.otp-link-separator { color: #777; user-select: none; }
.otp-resend-link:disabled { color: #777; cursor: not-allowed; text-decoration: none; }
.hb-submit-loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: wait;
    opacity: 0.7;
    pointer-events: none;
}
.hb-submit-loading::before {
    width: 16px;
    height: 16px;
    margin-right: 10px;
    flex: 0 0 16px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    content: "";
    animation: hb-submit-spinner 700ms linear infinite;
}
@keyframes hb-submit-spinner {
    to { transform: rotate(360deg); }
}

@media only screen and (min-width: 1024px) {
    .login.registration .box { width: 650px; padding: 50px 80px; }
}
@media (max-width: 767px) {
    .registration .box { padding: 40px 20px; }
    .registration .valign { padding: 20px 10px; }
    .front .box .form, .front.login .box .form { padding: 0; }
    .form-control { font-size: 16px; }
    .otp-button-row .btn-form { padding: 12px 10px; font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
    .hb-submit-loading::before { animation: none; }
}
