@charset "UTF-8";
/*
 * Quentic Tenant Selection Service
 * Copyright(c) Quentic GmbH
 * contact.de@quentic.com
 *
 * https://www.quentic.com/
 */

/*
 * This file contains all styling rules regarding the form's behaviour & especially all input fields
 */

input, button {
    font-size: 17px;
    box-sizing: border-box;
    padding: 10px;
    margin: 0;
    width: 100%;
    border: none;
}

::-webkit-input-placeholder {
    font-weight: normal;
    color: #afafaf;
}

:-moz-placeholder { /* Firefox 18- */
    font-weight: normal;
    color: #afafaf;
}

::-moz-placeholder { /* Firefox 19+ */
    font-weight: normal;
    color: #afafaf;
}

:-ms-input-placeholder {
    font-weight: normal;
    color: #afafaf;
}

.button {
    cursor: pointer;

    font-size: 24px;
    font-weight: 600;
    padding: 10px;
    margin-top: 10px;

    color: #ffffff;
    background-color: #42b253;
    transition: background-color 200ms linear;
    -webkit-appearance: none;

    outline: transparent;
    border: none;
    -webkit-border-radius: 30px;
    -moz-border-radius: 30px;
    border-radius: 30px;
}

.idp-selector-buttons button:not(:last-child) {
    margin-bottom: 30px;
}

.idp-selector-buttons button:not(:first-child) {
    background-color: transparent;
    color: #4169e1;
    font-size: 18px;
    padding: 0;
}

input.hidden, span.hidden {
    display: none;
}

input {
    padding: 13px;
    margin-top: 0;

    box-shadow: none;
    outline: none;
    border-radius: 6px;

    border: 1px solid #d2d6de;
    color: #767676;
}

input[disabled], input[readonly] {
    /* override browser specific background colors of disabled inputs */
    background-color: #ffffff !important;
    cursor: default;

    /* disable any text cursor on focus */
    pointer-events: none;

    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;

}

input:not([readonly]):not([disabled]):focus {
    border-color: #42b253;
    box-shadow: 0 0 0 1px #42b253;
}

input.has-label:focus::-ms-input-placeholder {
    opacity: 0;
}

input.has-label:focus::placeholder {
    opacity: 0;
}

/* Expose a hook for JavaScript when auto fill is shown.
   JavaScript can capture 'animationstart' events. */
input:-webkit-autofill {
    animation-name: autoFillStart;
}

input:not(:-webkit-autofill) {
    animation-name: autoFillCancel;
}

@keyframes autoFillStart {
    from { /**/
    }
    to { /**/
    }
}

@keyframes autoFillCancel {
    from { /**/
    }
    to { /**/
    }
}

.input-wrapper {
    position: relative;
}

.input-wrapper > .clear-trigger {
    display: none;

    position: absolute;
    right: 10px;

    top: 50%;
    transform: translateY(-50%);

    width: 20px;
    height: 20px;

    background: url('../images/icons/clear-trigger.png') no-repeat center center;
    background-size: contain;

    cursor: pointer;
}

input:focus ~ .clear-trigger,
input:hover ~ .clear-trigger,
.input-wrapper:hover > .clear-trigger,
.input-wrapper > .clear-trigger:hover {
    display: block;
}


.input-wrapper > .clear-trigger:hover {
    background-image: url('../images/icons/clear-trigger-hover.png');
}


.input-wrapper > input:not(:only-child) {
    padding-right: 30px;
}

.input-wrapper > input:not(:only-child)::-ms-clear {
    display: none;
}

label {
    font-size: 14px;
    color: #afafaf;
    padding: 0 5px;
    border-radius: 3px;

    position: absolute;
    z-index: 1;
    left: 10px;
    top: 0;
    transform: translateY(-50%);
    background-color: white;
}

label.hidden {
    display: block;
    opacity: 0;
}

/** Error Messages **/

#login-form .message {
    flex-wrap: nowrap;
    align-items: flex-start;
}

.message.error .text {
    color: #e90000;
}

.message.error .icon {
    background-image: url("../images/icons/attention.png");

    width: 16px;
    height: 16px;
    flex-shrink: 0;

    margin-right: 5px;
    margin-top: 3px;
}

#login-form.has-message.error #tenant_form_tenant:not(:focus) {
    border-color: #e90000;
}
