@import url('https://fonts.googleapis.com/css?family=Rubik:500,400');

:root {
    --white: #FFFFFF;
    --card-blue-100: rgba(0, 21, 80, 0.85);
    --blue-100: #F9FBFF;
    --blue-400: #D9E3FF;
    --blue-500: #BCCDFF;
    --blue-600: #8BAAFF;
    --blue-700: #193DA1;
    --blue-800: #00217D;
    --blue-900: #001550;

    --gray-100: #F7F7F7;
    --gray-400: #CBD5E0;
    --gray-500: #6B83A8;
    --gray-600: #5A6F99;
    --gray-700: #495A7C;
    --gray-800: #2D3748;
    --gray-900: #1A202C;
    --error: #DF0000;
    --success: #008040;
}


@keyframes slide-in {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

#kc-content {
    display: flex;
    flex-direction: column;
    border: 2px solid var(--blue-400);
    box-sizing: border-box;
    border-radius: 4px;
    padding: 40px 56px 48px;
    background-color: var(--white);
    width: 90vw;
}


#kc-page-title {
    color: #0051BC;
    font-weight: 700;
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 8px;
}

html, head, body {
    background: linear-gradient(
            var(--card-blue-100),
            var(--card-blue-100)
    ),
    url("../img/web-app-background.png") !important;
    background-size: 100vh !important;
}

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px;
    font-family: 'Rubik', sans-serif;
}

hr.hr-header {
    margin: 20px 0 4px;
}

hr.hr-footer {
    margin: 32px 0 20px;
}

a:not(.btn) {
    color: var(--blue-800);
}

input[type=text], textarea {
    color: #3D4564;
}

.btn {
    transition: all 0.4s ease;
    border-radius: 8px;
    border: 0;
    padding: 8px;
    height: 44px !important;
    text-decoration: none;
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 150%;
}

.btn-secondary {
    background-color: white;
    border: 2px solid var(--gray-500);
    box-sizing: border-box;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    color: var(--blue-800);
}

.btn-secondary:hover {
    border: 2px solid var(--blue-800);
}

.btn-secondary:focus {
    outline: 4px solid var(--blue-700);
    outline-offset: 2px;
    border-radius: .25rem;
    box-shadow: none !important;
}

.btn-secondary:focus {
    box-shadow: 0 0 6px var(--blue-800);
}

.btn-primary {
    background: var(--blue-800) none;
    border-radius: 4px;
    height: 44px;
    transition: none;
}

.btn-primary:hover {
    background: var(--blue-700) none;
}

.btn-primary:active {
    background: var(--blue-900) none !important;
    box-shadow: none;
}

.btn-primary:focus {
    background: var(--blue-800) none !important;
    outline: 4px solid var(--blue-700);
    outline-offset: 2px;
    border-radius: .25rem;
    box-shadow: none;
}

.btn-primary:disabled {
    background: var(--gray-500) none !important;
    color: var(--gray-400) !important;
}

.username-password {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.toggle-password-icon {
    color: var(--gray-600);
    height: 47px;
    width: 36px;
    background-repeat: no-repeat !important;
    border: 0;
    position: absolute;
    top: 0;
    right: 0;
    background-position: center !important;
}

.toggle-password-icon:focus {
    outline: 4px solid var(--blue-700);
    outline-offset: 2px;
    border-radius: 4px;
    box-shadow: none;
}

.toggle-password-icon.password-visible {
    background: url(../img/password-visible.svg);
}

.toggle-password-icon.password-hidden {
    background: url(../img/password-hidden.svg);
}


.username-password > .form-group {
    flex-grow: 1;
    margin-bottom: 24px;
}

.forgot-password {
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    color: var(--blue-800);
}

.forgot-password:hover {
    color: var(--blue-900);
}

.forgot-password:active {
    color: var(--blue-900);
}

.forgot-password:focus {
    outline: 4px solid var(--blue-700);
    outline-offset: 2px;
    border-radius: 4px;
    box-shadow: none;
}

input#username, input#password {
    border-radius: 4px;
    border: 2px solid var(--gray-500);
    width: 100%;
    height: 48px !important;
    font-style: normal;
    font-weight: normal;
    line-height: 150%;
    font-size: 16px !important;
    color: var(--gray-900);
    padding-left: 8px;
}

input#username::placeholder, input#password::placeholder {
    font-size: 16px !important;
    color: var(--gray-600);
    font-style: normal;
}

input#username:focus, input#password:focus {
    outline: 4px solid var(--blue-700);
    outline-offset: 2px;
    border-radius: .25rem;
    box-shadow: none;
}

.form-control:hover, .form-control:active, .form-control:focus-visible {
    border-color: var(--gray-700);
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 24px;
}

.form-group > :last-child {
    margin-bottom: 0;
}

.login-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

.login-header > * {
    width: 100%;
}

.login-header p {
    font-weight: 400;
}

.alert {
    display: flex;
    padding: 0;
    border: 0;
    background-color: transparent;
    justify-content: center;
    margin-top: 2rem;
}

.alert span {
    font-size: 12px !important;
    font-weight: 400;
}

.boclips-error, .boclips-warning, .boclips-success, .boclips-info {
    width: 24px;
    height: 24px;
    margin-right: 8px;
}

.boclips-error {
    background: url(../img/error.svg) no-repeat center;
}

.boclips-warning {
    background: url(../img/warning.svg) no-repeat center;
}

.boclips-success {
    background: url(../img/success.svg) no-repeat center;
}

.boclips-info {
    background: url(../img/info.svg) no-repeat center;
}

.login-pf-page {
    display: flex;
    justify-content: center;
    padding-top: 56px !important;
}

section.alert-wrapper {
    display: block;
}

div.alert {
    margin-bottom: 0;
}

.alert-wrapper > .form-group > input, .alert-wrapper > .form-group > div > input {
    border: 3px solid var(--error);
}

.alert-error span {
    color: var(--error);
}

.alert-warning {
    display: none;
    color: #FF654C;
}

.alert-success {
    color: var(--success);;
}

.alert-info {
    color: #8BAAFF;
}

.login-pf-page .login-pf-header h1 {
    text-align: left;
    font-weight: 700;
    font-size: 20px;
    color: #3D4564;
}

@media (min-width: 768px) {
    #kc-content {
        max-width: 662px;
    }

    .login-pf-page .login-pf-header {
        margin-bottom: 8px;
    }

    .login-header p {
        width: 70%;
        margin: auto;
    }
}

#kc-header-wrapper {
    display: none;
}

#kc-locale ul {
    display: none;
    position: absolute;
    background-color: #fff;
    list-style: none;
    right: 0;
    top: 20px;
    min-width: 100px;
    padding: 2px 0;
    border: solid 1px #bbb;
}

#kc-locale:hover ul {
    display: block;
    margin: 0;
}

#kc-locale ul li a {
    display: block;
    padding: 5px 14px;
    color: #000 !important;
    text-decoration: none;
    line-height: 20px;
}

#kc-locale ul li a:hover {
    color: #4d5258;
    background-color: #d4edfa;
}

#kc-locale-dropdown a {
    color: #4d5258;
    background: 0 0;
    padding: 0 15px 0 0;
    font-weight: 300;
}

#kc-locale-dropdown a:hover {
    text-decoration: none;
}

a#kc-current-locale-link {
    display: block;
    padding: 0 5px;
}

a#kc-current-locale-link::after {
    content: "\2c5";
    margin-left: 4px;
}

.login-pf .container {
    padding-top: 40px;
}

#kc-logo {
    width: 100%;
}

#kc-logo-wrapper {
    height: 63px;
    width: 300px;
    margin: 62px auto 0;
}

div.kc-logo-text {
    background-image: url(../img/boclips-logo.svg);
    background-repeat: no-repeat;
    background-size: contain;
    height: 63px;
    width: 170px;
    margin: 0 auto;
}

a.resend-email {
    width: 100%;
    margin-top: 16px;
}


div.bc-email-logo {
    background-image: url(../img/web-app-email-image.svg);
    background-repeat: no-repeat;
    background-size: contain;
    height: 149px;
    width: 135px;
    margin: 0 auto;
}

div.kc-logo-text span {
    display: none;
}

#kc-header {
    display: none;
}

#kc-header-wrapper {
    font-size: 29px;
    text-transform: uppercase;
    letter-spacing: 3px;
    line-height: 1.2em;
    padding: 62px 10px 20px;
    white-space: normal;
}

#kc-info {
    margin: 8px 0;
    font-size: 16px;
    color: #434656;
    background: white;
}

#kc-info-wrapper {
    text-align: left;
}

#kc-form-options span {
    display: block;
}

#kc-form-options .checkbox {
    margin-top: 0;
    color: #72767b;
}

#kc-terms-text {
    margin-bottom: 20px;
}

#kc-registration {
    margin-bottom: 15px;
    text-align: center;
}

/* TOTP */

ol#kc-totp-settings {
    margin: 0;
    padding-left: 20px;
}

ul#kc-totp-supported-apps {
    margin-bottom: 10px;
}

#kc-totp-secret-qr-code {
    max-width: 150px;
    max-height: 150px;
}

#kc-totp-secret-key {
    background-color: #fff;
    color: #333333;
    font-size: 16px;
    padding: 10px 0;
}

/* OAuth */

#kc-oauth h3 {
    margin-top: 0;
}

#kc-oauth ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#kc-oauth ul li {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12px;
    padding: 10px 0;
}

#kc-oauth ul li:first-of-type {
    border-top: 0;
}

#kc-oauth .kc-role {
    display: inline-block;
    width: 50%;
}

/* Code */
#kc-code textarea {
    width: 100%;
    height: 8em;
}

/* Social */

#kc-social-providers ul {
    padding: 0;
}

#kc-social-providers li {
    display: flex;
    align-items: center;
}

#kc-social-providers li:first-of-type {
    margin-top: 0;
}

.zocial,
a.zocial {
    background: transparent;
    width: 100%;
    height: 44px;
    font-weight: normal;
    font-size: 14px;
    text-shadow: none;
    border: 0;
    color: var(--blue-800);
    border-radius: 0;
    white-space: normal;
}

.zocial:focus {
    background: var(--blue-900) none !important;
    color: white !important;
    outline: 4px solid var(--blue-700);
    outline-offset: 2px;
    border-radius: 4px;
    box-shadow: none;
}

.zocial:before {
    border-right: 0;
    margin-right: 0;
}

.zocial span:before {
    padding: 7px 10px;
    font-size: 14px;
}

.zocial:hover {
    background: #ededed !important;
}

.zocial.facebook,
.zocial.github,
.zocial.google,
.zocial.microsoft,
.zocial.stackoverflow,
.zocial.linkedin,
.zocial.twitter {
    background-image: none;
    border: 0;

    box-shadow: none;
    text-shadow: none;
}

/* Copy of zocial windows classes to be used for microsoft's social provider button */
.zocial.microsoft:before {
    content: "\f15d";
}

.zocial.stackoverflow:before {
    color: inherit;
}

@media (min-width: 768px) {
    #kc-container-wrapper {
        position: absolute;
        width: 100%;
    }

    .login-pf .container {
        padding-right: 80px;
    }

    #kc-locale {
        position: relative;
        text-align: right;
        z-index: 9999;
    }
}

@media (max-width: 767px) {
    .username-password {
        display: block;
    }

    .username-password > .form-group + .form-group {
        margin-left: 0;
    }

    #kc-form {
        float: none;
    }

    #kc-info-wrapper {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        margin-top: 15px;
        padding-top: 15px;
        padding-left: 0;
        padding-right: 15px;
    }

    #kc-social-providers li {
        display: block;
        margin-right: 5px;
    }

    .login-pf .container {
        padding-top: 15px;
        padding-bottom: 15px;
    }

    #kc-locale {
        position: absolute;
        width: 200px;
        top: 20px;
        right: 20px;
        text-align: right;
        z-index: 9999;
    }

    #kc-logo-wrapper {
        background-size: 100px 21px;
        height: 21px;
        width: 100px;
        margin: 20px 0 0 20px;
    }

}

.password-hint {
    font-size: 12px;
}

@media (min-height: 646px) {
    #kc-container-wrapper {
        bottom: 12%;
    }
}

@media (max-height: 645px) {
    #kc-container-wrapper {
        padding-top: 50px;
        top: 20%;
    }
}

.card-pf form.form-actions .btn {
    float: right;
    margin-left: 10px;
}


.login-pf-page .login-pf-brand {
    margin-top: 20px;
    max-width: 360px;
    width: 40%;
}

.card-pf {
    background: #FAFAFF;
    margin: 0 auto;
    padding: 0 20px;
    max-width: 550px;
    border-top: 0;
    box-shadow: 0 0 0;
}

/*tablet*/
@media (max-width: 840px) {

    .login-pf-page .card-pf {
        max-width: none;
        margin-left: 20px;
        margin-right: 20px;
        padding: 20px 20px 30px 20px;
    }
}

@media (max-width: 767px) {
    .login-pf-page .card-pf {
        max-width: none;
        margin-left: 0;
        margin-right: 0;
        padding-top: 0;
    }

    .card-pf.login-pf-accounts {
        max-width: none;
    }
}

#kc-content-wrapper .row {
    margin-left: 0;
    margin-right: 0;
}

@media (min-width: 768px) {
    .login-pf-page .login-pf-social-section:first-of-type {
        padding-right: 39px;
        border-right: 1px solid #d1d1d1;
        margin-right: -1px;
    }

    .login-pf-page .login-pf-social-section:last-of-type {
        padding-left: 40px;
    }

    .login-pf-page .login-pf-social-section .login-pf-social-link:last-of-type {
        margin-bottom: 0;
    }
}

.login-pf-page .login-pf-social-link {
    margin-bottom: 25px;
}

.login-pf-page .login-pf-social-link a {
    padding: 2px 0;
}

.login-pf-page.login-pf-page-accounts {
    margin-left: auto;
    margin-right: auto;
}

.login-pf-page .login-pf-header {
    margin-bottom: 4px;
}

.login-pf-page .btn-primary {
    margin-top: 0;
}


#hs-feedback-fetcher {
    display: none;
}

form > :last-child {
    margin-bottom: 0;
}

#kc-form-buttons div {
    width: 100%;
    margin-bottom: 16px;
}

#kc-form-buttons > :last-child {
    margin-bottom: 0;
}

.control-label {
    font-weight: normal;
    color: var(--gray-800);
    margin-bottom: 2px;
}

.boclips-action-label {
    color: #00217d;
    font-style: normal;
    font-weight: 500;
    font-size: 18px;
    line-height: 24px;
    letter-spacing: 0.1px;
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

#kc-registration.boclips-registration {
    text-align: left;
    margin-top: 30px;
}

.boclips-forgot-password-container {
    display: flex;
    justify-content: center;
    margin-top: 16px;
}

.boclips-login-header h1.title {
    color: #1A202C;
    font-weight: 500;
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 0;
    text-align: center;
}

.boclips-login-header h2.sub-title {
    color: #1A202C;
    font-size: 16px;
    text-align: center;
}

.boclips-login-button {
    margin-left: auto;
    margin-right: auto;
    width: 210px !important;
}

.boclips-social-container ul {
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}

.boclips-social-container li {
    display: flex;
    transition: border-color 0.4s ease;
    justify-content: center;
    box-sizing: border-box;
    border-radius: 4px;
}

.boclips-social-container li + li {
    margin-top: 16px;
}

.boclips-social-container a.boclips-social {
    background-color: transparent;
    text-decoration: none;
    color: var(--blue-800);
    transition: color 0.4s ease;
    width: 100%;
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 150%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid #A0AEC0;
    border-radius: 4px;
}

.boclips-social-container li:hover {
    background-color: transparent;
    border-color: #0051BC;
}

.boclips-social-container a.boclips-social:hover {
    background-color: transparent !important;
    color: var(--blue-900) !important;
}

.boclips-social-container a.boclips-social::before {
    padding-left: 8px;
    padding-right: 8px;
}

.boclips-social-container a.boclips-social.microsoft::before {
    content: url('../img/microsoft.svg');
}

.boclips-social-container a.boclips-social.google::before {
    content: url('../img/google.svg');
}

.boclips-social-divider-label {
    display: flex;
    flex-direction: row;
}

.boclips-social-divider-label:before, .boclips-social-divider-label:after {
    content: "";
    flex: 1 1;
    border-top: 2px solid #D9E3FF;
    margin: 12px 0;
}

.boclips-social-divider-label:before {
    margin-right: 10px
}

.boclips-social-divider-label:after {
    margin-left: 10px
}

.boclips-footer {
    padding: 15px 50px;
    border-top: 1px solid #E8EFFF;
    color: #6471A9;
    font-size: 11px;
    line-height: 15px;
    max-width: 1200px;
    margin: 54px auto 0;
}

html.web-app-login, body.web-app-login {
    background: #F5F5F5 !important;
}

div.web-app-login {
    background: url("../img/web-app-login-background.svg") !important;
    background-size: cover !important;
    height: 836px;
    width: 776px !important;
    display: flex;

    #kc-content {
        margin: auto !important;

    }

    .bc-email-logo {
        width: 310px;
        height: 222px;
    }

    .resend-email-instruction {
        width: 100%;
        text-align: center;
    }
}

.boclips-sign-up {
    width: 100%;
    text-align: center;
    font-weight: 500;
    padding: 2rem;
    font-size: 14px;
    color: var(--gray-800);
}

.boclips-sign-up-link > span{
    color: var(--blue-800);
    font-size: 14px !important;
    text-decoration: underline;
}

.boclips-sign-up-link > span:hover {
    color: var(--blue-900);
}

.boclips-sign-up-link > span:active {
    color: var(--blue-900);
}

.boclips-logo-wrapper {
    display: flex;
    justify-content: center;
}

#hs-eu-decline-button {
    color: var(--blue-800) !important;;
    font-weight: 500 !important;
}

#hs-eu-confirmation-button {
    color: var(--white) !important;
    font-weight: 500 !important;
}
