/*
 * Copyright 2016 Red Hat, Inc. and/or its affiliates
 * and other contributors as indicated by the @author tags.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

@import url('../../keycloak/lib/zocial/zocial.css');

html {
    /* set base font-size to equiv "10px", which is adapted to rem unit */
    font-size: 62.5%;
    /* IE9-IE11 math fixing. See http://bit.ly/1g4X0bX */
    /* thanks to @guardian, @victorbritopro and @eQRoeil */
    font-size: calc(1em * 0.625);
}

/* line 48, /Users/raphael/Documents/GitHub/KNACSS/sass/_01b-base.scss */
body {
    font-size: 1.4rem;
    background-color: #fff;
    color: #000;
    font-family: sans-serif;
    line-height: 1.5;
}

.alert {
    padding: .8rem 1.5rem;
    font-size: 1.6rem;
    margin: 1rem 0;
}

.alert.alert-error {
    color: #c03842;
    background-color: #f9eaeb;
}

.alert.alert-success {
    color: #38c052;
    background-color: #eaf9ec;
}


body {
    /*background-color: rgb(245, 244, 243);*/
    background-color: white;

    color: black;
    font-family: Raleway, sans-serif;
    margin: 0;
}


a {
    color: black;
}

#kc-locale {
    float: right;
    margin-top: -6rem;
    margin-right: 2rem;
    color: white;
}

#kc-locale a {
    color: white;
}

#kc-logo {
    width: 100%;
    background-color: #1c3259;
    padding: 1rem;
    margin-bottom: 1rem;
}

#kc-logo-wrapper {
    background-image: url("../img/cniegHome.png");
    background-repeat: no-repeat;

    height: 62px;
    width: 217px;
}

#kc-logo-wrapper a {
    display: block;
    width: 100%;
    height: 100%;
}

div.title {
    position: relative;
    padding: 1rem 4rem;
    background: #fbd87a;
    text-align: left;
}

div.panel {
    box-sizing: inherit;
}

div.title::after {
    position: absolute;
    content: "";
    left: 27px;
    bottom: -21px;
    border-top: 0 solid transparent;
    border-right: 0 solid transparent;
    border-bottom: 33px solid transparent;
    border-left: 32px solid #fbd87a;
    z-index: 6;
}

div.title h2 {
    margin: 0;
    font-size: 2.4rem;
    font-weight: 300;
    line-height: 3.2rem;
}

div.content {
    box-sizing: inherit;
    padding: 3rem 3rem 3rem 4.5rem;
    background-color: #f5f4f3;
    /* background-color: white;*/

    border: 5px solid transparent;
    -ms-flex-pack: justify;
    justify-content: space-between;
    text-align: left;
    font-family: Asap, sans-serif;
    width: 100%;
    font-size: 1.6rem;
}

div.aide {
    font-size: 1.2rem;
    margin: 0.3rem 0;
}

div.obligatoire label::after {
    content: " *";
    color: #c03842;
}

div.avecSousDivInline {
    margin-bottom: 1rem;
}

div.avecSousDivInline .inputWrapper {
    float: left;
    margin-right: 5px;
}

.msg {
    display: block;
    font-size: 1.2rem;
    line-height: 1.2rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.msg.msg-error {
    color: #c03842;
}


div.inputError input {
    outline: 1px solid #c03842;
}

div#kc-content {
    /*position: absolute;
    top: 20%;
    left: 50%;
    margin-left: -225px;*/
    width: 700px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}


div#kc-content-wrapper {
    box-sizing: inherit;
}

form.formulaire {
    box-sizing: inherit;
}


div#kc-form {
    /*float: left;*/
    width: 700px;
    box-sizing: inherit;
}

div#kc-form-wrapper {
    box-sizing: inherit;
}

.champGroup, .inputWrapper {
    box-sizing: inherit;
}

div#kc-form label {
    display: block;
    font-size: 1.6rem;
}

div#info-area {
    position: fixed;
    bottom: 0;
    left: 0;
    margin-top: 40px;
    background-color: rgba(0, 0, 0, 0.4);
    padding: 20px;
    width: 550px;
}

div#info-area p {
    margin-right: 30px;
    display: inline;
    text-shadow: none;
}

input[type=text], input[type=password] {
    color: black;
    font-size: 1.4rem;
    margin-bottom: 20px;
    border: 0px solid rgba(0, 0, 0, 0.2);
    box-shadow: inset 0 0 2px 2px rgba(0, 0, 0, 0.15);
    padding: 10px;
    width: 100%;
    box-sizing: inherit;
}

input[type=submit], button[type=submit], .bouton {
    float: right;

    border: none;

    box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.5);

    color: white;

    font-size: 13px;
    font-weight: bold;

    padding: 10px;
    margin-top: 20px;
    margin-right: 10px;
    width: 150px;

    border-radius: 3rem;
    background-color: #007cc2;

    cursor: pointer;
}

.bouton {
    width: 166px;
    height: 17px;
    text-align: center;
    padding-top: 8px;
}

input[type=submit]:hover, button[type=submit]:hover, .bouton:hover {
    background-color: rgba(255, 255, 255, 0.8);
    color: #007cc2;
}

input[type=submit].discret, button[type=submit].discret, .bouton.discret {
    background-color: #8a8a8a;
}

input[type=submit].discret:hover, button[type=submit].discret:hover, .bouton.discret:hover {
    background-color: rgba(255, 255, 255, 0.8);
    color: #8a8a8a;
}

a:link.bouton {
    text-decoration: none;
}

div#kc-form-options div {
    display: inline-block;
    margin-right: 20px;
    font-size: 12px;
}

div#kc-form-options div label {
    font-size: 12px;
}

div#kc-feedback {
    box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.5);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    text-align: center;
}

div#kc-feedback-wrapper {
    padding: 1em;
}

div.feedback-success {
    background-color: rgba(155, 155, 255, 0.1);
}

div.feedback-warning {
    background-color: rgba(255, 175, 0, 0.1);
}

div.feedback-error {
    background-color: rgba(255, 0, 0, 0.1);
}

div#kc-header {
    margin: 0.67em auto;

    width: 700px;
    box-sizing: border-box;

    font-size: 4rem;
    color: #333;
    font-weight: 300;
    line-height: 5rem;
}

div#kc-registration {
    margin: 2rem 0 0 1rem;
}

div#social-login {
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    float: right;
    width: 150px;
    padding: 20px 0 200px 40px;
}

div.social-login span {
    display: none;
}

div.form-profile-button {
    margin-bottom: 10rem;
}

div#kc-social-providers ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

div#kc-social-providers ul li {
    margin-bottom: 20px;
}

div#kc-social-providers ul li span {
    display: inline;
    width: 100px;
}

a.zocial {
    border: none;
    background: -webkit-linear-gradient(top, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.1)) !important;
    background: -moz-linear-gradient(top, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.1)) !important;
    background: -ms-linear-gradient(top, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.1)) !important;
    background: -o-linear-gradient(top, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.1)) !important;
    box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.5);
    color: rgba(0, 0, 0, 0.6);
    width: 130px;
    text-shadow: none;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    border-radius: 0;
    padding-top: 0.2em;
    padding-bottom: 0.2em;
}


.admin-console #kc-container-wrapper div {
    display: inline-block;
}

.bar {
    width: 700px;
    margin: 0 auto;
    height: 3rem;
    border-bottom: .1rem solid #d2d4d6;
}

.bar ul {
    padding: 0;
    margin: 0;
}

.bar-gauche {
    float: left;
}

.bar-droite {
    float: right;
}

.bar li {
    display: inline-block;
    margin: 0 0.2rem;
    padding: 0.4rem 1.2rem;
    list-style: none;
    height: 100%;
    box-sizing: border-box;
    border: .1rem solid #d2d4d6;
    border-bottom: none;
    border-radius: 3px 3px 0 0;
}

.bar li:not(.active):hover {
    background-color: #9bb0bc99;
}

.bar li > a {
    text-decoration: none;
    font-weight: bold;
    display: block;
    width: 100%;
    height: 100%;
    color: #606060;
}

.bar li.active {
    background-color: #124d6f;
    color: white;
}

.bar li.active > a {
    color: white;
}
