
:root {
    --i4d-welcome-title-foreground:#555555;
    --i4d-login-label-foreground:#555555;
    --i4d-login-form-border-color:#ccc;
    --i4d-login-button-background:#da0808;
    --i4d-login-button-foreground: #ffffff;
    --i4d-login-button-hover-background:#363636;
    --i4d-consent-button-background:#da0808;
    --i4d-consent-button-foreground: #ffffff;
    --i4d-consent-button-hover-background:#363636;
    --i4d-error-color: #ff3d00;
    --i4d-error-message-color: #F44336;
}

.i4d-designer-logo {
    background-image: url(logo.png);
}

@font-face {
    font-family: "OpenSans-Light";
    src: url(OpenSans-Light.ttf) format("truetype");
}

body, * {
    font-family: "OpenSans-Light";
}

/* ------ login ------*/

input:focus {
    outline-color: var(--i4d-login-form-border-color);
    border-color: transparent;
}


.i4d-login-container {
    position: absolute;
    width: 400px;
    top: 400px;
    left: 50%;
    transform: translate(-50%, -50%);
}

.i4d-login-container a {
    text-underline-position: under;
    color: #2196F3;
    word-break: break-all;
}

.i4d-designer-logo {
    height: 48px;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
    margin-bottom: 60px;
    animation: fadeSlideDown 0.3s;
}

.i4d-designer-logo.logout {
    animation: none;
}

form.i4d-login-form {
    display: flex;
    flex-direction: column;
    animation: fadein 0.3s;
}

.i4d-welcome-title {
    font-size: 38px;
    color: var(--i4d-welcome-title-foreground);
    text-align: center;
    font-family: 'OpenSans-Light';
    margin-bottom: 10px;
    animation: fadein 0.5s;
}

span.i4d-login-label {
    font-size: 18px;
    padding: 5px 0;
    color: var(--i4d-login-label-foreground);
}

.i4d-login-form input {
    padding: 10px;
    min-height: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--i4d-login-form-border-color);
}

.i4d-login-button,
.i4d-register-button {
    background-image: none;
    font-size: 20px;
    color: var(--i4d-login-button-foreground);
    background-color: var(--i4d-login-button-background);
    border: none !important;
    height: 50px;
    transition: 0.3s;
}

.i4d-login-button:hover,
.i4d-register-button:hover {
    box-shadow: none;
    background-color: var(--i4d-login-button-hover-background);
    transition: 0.3s;    
    box-shadow: 0px 5px 10px 0px rgba(0, 0, 0, 0.3);
}

.i4d-login-checkbox {
    display: block;
    position: relative;
    margin-bottom: 10px;
    padding: 24px;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}


/* Hide the browser's default checkbox */
.i4d-login-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
    top: 0;
    left: 0;
}

/* Create a custom checkbox */
.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 25px;
    padding: 10px 0 5px;
    width: 100%;
    background-color: #f6f6f6;
    color: var(--i4d-login-label-foreground);
    text-indent: 45px;
    font-size: 18px;
    border: 1px solid #fff;
    transition: 0.3s;
}

/* On mouse-over, add a grey background color */
.i4d-login-checkbox:hover input ~ .checkmark,
.i4d-login-checkbox:hover input ~ .checkmark:after {
    background-color: #2196F3;
    color: #fff;
    border-color: #fff;
    transition: 0.3s;
}



/* When the checkbox is checked, add a blue background */
.i4d-login-checkbox input:checked ~ .checkmark {
    background-color: #ffffff;
    color: #2196f3;
    border: 1px solid #2196f3;
}

/* Show the checkmark when checked */
.i4d-login-checkbox input:checked ~ .checkmark:after {
    left: 20px;
    top: 10px;
    width: 7px;
    height: 15px;
    border: solid white;
    border: solid #2196F3;
    border-width: 0px 1px 1px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
    transition: transform 0.3s;
}

/* Style the checkmark/indicator */
.i4d-login-checkbox .checkmark:after {
    transition: transform 0.3s;
    border: solid #2196F3;
    width: 15px;
    border-width: 1px;
    transform: rotate(0deg);
    content: "";
    position: absolute;
    height: 15px;
    display: block;
    top: 11px;
    bottom: 12px;
    left: 15px;
    background: transparent !important;
}

ul.pass-required {
    margin-top: 0;
    display: none;
    position: absolute;
    background: white;
    border: 1px solid #da0608;
    left: 0;
    right: 0;
    padding: 10px;
    box-shadow: 0 5px 5px #00000030;
}

.info-tooltip {
    height: 0;
    overflow: visible;
    position: relative;
}

.info-button {
    background: #03A9F4;
    color: #fff;
    border: none;
    width: 14px;
    height: 14px;
    font-size: 10px;
    line-height: 10px;
    cursor: pointer;
    position: absolute;
    right: 0;
    bottom: 100%;
    border-radius: 50%;
    align-items: center;
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.info-button:hover ~ .pass-required {
    display: block;
}

li.pass-required-item {
    list-style: none;
    font-size: 13px;
}

.forgot-pass {
    text-decoration: none;
    margin-bottom: 20px;
    text-align: right;
    font-size: 14px;
    font-weight: 600;
    color: var(--i4d-login-button-background);
}

/*----- consent -----*/


.i4d-consent-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    animation: fadein 0.3s;
}

.i4d-consent-warning {
    padding: 20px;
    background: #ffffff;
    border: 1px solid #FF9800;
    font-size: 24px;
    color: #FF9800;
    text-align: center;
    font-family: 'OpenSans-Light';
    margin-bottom: 21px;
}

.i4d-user {
    display: block;
    align-items: center;
    position: relative;
}

.i4d-user-image {
    background-image: url(user.png);
    height: 100px;
    width: 100px;
    background-repeat: no-repeat;
    background-position: left;
    background-size: contain;
}

.i4d-consent-title {
    font-size: 20px;
    color: var(--i4d-welcome-title-foreground);
    font-family: 'OpenSans-Light';
    margin: 0;
    animation: fadein 0.3s;
    position: absolute;
    top: 0;
    left: 120px;
}

span.i4d-consent-info {
    font-size: 20px;
    font-family: 'OpenSans-Light';
    position: absolute;
    top: 0;
    left: 120px;
    text-align: left;
}

.i4d-consent-text {
    background: white;
    padding: 10px;
    /* border: 1px solid #FF9800; */
    color: var(--i4d-login-label-foreground);
}

.i4d-consent-links {
    display: flex;
    flex-direction: row-reverse;
    margin-top: 10px;
}

.i4d-consent-links a {
    display: block;
    margin-left: 15px;
    padding: 5px 10px;
    color: #2196F3;
}

.i4d-consent-links a:hover {
    text-decoration: none;
}

.i4d-consent-actions {
    display: flex;
    justify-content: flex-end;
}

.i4d-consent-button {
    background-image: none;
    font-size: 16px;
    color: var(--i4d-consent-button-foreground);
    background-color: var(--i4d-consent-button-background);
    border: none !important;
    margin-left: 10px;
}

.i4d-consent-button.deny{
    background: var(--i4d-error-message-color);
    transition: 0.3s;
}

.i4d-consent-button.deny:hover {
    background: #da0907;
    transition: 0.3s;
}

.i4d-consent-button:hover {
    box-shadow: 0px 5px 10px 0px rgba(0, 0, 0, 0.3);
    background-color: var(--i4d-consent-button-hover-background);
    transition: 0.3s;

}

.btn-group-sm>.btn, .btn-sm {
    padding: .25rem .5rem !important;
    font-size: .875rem;
    line-height: 1.5;
}

ul.i4d-scope-list {
    list-style: none;
    padding: 0;
}

li.scope-item {
    background: #f6f6f6;
    padding: 10px;
    margin: 10px 0;
}

/* ----- error ----*/
.i4d-error {
    text-align: center;
    border: 1px solid var(--i4d-error-color);
    padding: 5px;
    display: block;
    color: var(--i4d-error-color);
}

.i4d-error-container {
    position: absolute;
    max-width: 70%;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 20px;
    border: 1px solid var(--i4d-error-color);
    animation: fadein 0.3s;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.error-message {
    display: -ms-flexbox;
    display: flex;
    padding-bottom: 20px;
    background: #ffffff;
 /* border-bottom: 1px solid var(--i4d-error-message-color); 
    align-items: center;
    justify-content: center;
    font-size: 24px;*/
    color: var(--i4d-error-message-color);
    -ms-flex-pack: center;
    font-family: 'OpenSans-Light';
}

span.error-message li {
    list-style: none;
}

span.error-message ul {
    margin: 5px;
    padding: 0;
}

span.error-message.register-error-message {
    flex-direction: column;
    align-items: flex-start;
    font-size: 13px;
}

.error-status {
    font-size: 18px;
    top: 0;
    left: 120px;
    color: #00BCD4;
    padding: 10px;
}

.error-icon {
    height: 24px;
    padding: 5px;
    margin-right: 10px;
}

.error-pre {
    color: var(--i4d-login-label-foreground);
    padding: 10px;
    background: #f6f6f6;
    text-align: left;
    white-space: pre-wrap;
}


/* ----- logout --- */

.i4d-logout-title {
    padding: 10px;
    font-size: 28px;
    color: var(--i4d-welcome-title-foreground);
    text-align: center;
    font-family: 'OpenSans-Light';
    margin-bottom: 60px;
}

.i4d-logout-container {
    position: absolute;
    width: 400px;
    top: 200px;
    left: 50%;
    transform: translateX(0%);
    background: white;
    padding: 20px;
}

.i4d-logout-container:before {
    content: " ";
    position: absolute;
    left: 0px;
    right: 0;
    top: -40px;
    bottom: -40px;
    pointer-events: none;
    background: transparent;
    box-shadow: -30px 0px 14px -25px #0000004f;
    animation: fadeout 0.5s;
    animation-timing-function: cubic-bezier(1, 0, 1, 0);
    border-radius: 10px;
    opacity: 0;
}

.i4d-logout-svg {
    position: absolute;
    top: 200px;
    height: 338px;
    left: 50%;
    animation: fadeSlideLeft 0.5s;
    transform: translateX(-150%);
}

.i4d-logout-svg .check{
    animation: fadein 0.5s;
    animation-timing-function: cubic-bezier(1, -0.5, 1, 0);
}

.pulse {
    margin: 100px;
    display: block;
    position: absolute;
    width: 90px;
    left: 5px;
    height: 90px;
    bottom: -29px;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    box-shadow: 0 0 0 #88aa00;
    animation: pulse 2s infinite;
    animation-delay: 3s;
}

@keyframes fadeSlideLeft {
    from {

        transform: translateX(0);
    }
    to {
        opacity:1;

    }
}

@keyframes fadein {
    from {
        opacity:0;
    }
    to {
        opacity:1;
    }
}

@keyframes fadeout {
    from {
        opacity:1;
    }
    to {
        opacity:0;
    }
}

@keyframes fadeSlideDown {
    from {
        opacity:0;
        transform: translateY(-100%);
    }
    to {
        opacity:1;
    }
}

@keyframes pulse {
    0% {
        -webkit-box-shadow: 0 0 0 0 #8BC34A;
    }
    70% {
        -webkit-box-shadow: 0 0 0 10px rgba(139, 195, 74, 0);
    }
    100% {
        -webkit-box-shadow: 0 0 0 0 rgba(204,169,44, 0);
    }
}

.hidden {
    display: none;
}

.i4d-version {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    background: #f5f5f5;
    padding: 10px 20px;
    text-align: right;
    font-size: 14px;
    border-top: 1px solid #c3c3c3;
    box-shadow: 0px 0px 10px #0d0d0d30;
    font-weight: bold;
}