/* 
 * styles/pages/security.css
 * Extrait de Bootstrap 3 et Gentelella pour les pages de sécurité (Login, Mot de passe oublié)
 */

/* ==========================================================================
   Base & Reset (Extrait de Bootstrap 3 / Normalize)
   ========================================================================== */

html {
    font-family: sans-serif;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    font-size: 10px;
}

body {
    margin: 0;
    font-family: "Helvetica Neue", Roboto, Arial, "Droid Sans", sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.471;
    color: #73879c;
    background: #2a3f54; /* Fallback global */
}

body.login {
    background: #f7f7f7;
}

* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

a {
    background-color: transparent;
    color: #5a738e;
    text-decoration: none;
}

a:hover, a:focus {
    color: #23527c;
    text-decoration: underline;
    outline: 0;
}

h1 {
    margin: .67em 0;
    font-size: 2em;
}

/* ==========================================================================
   Composants Bootstrap 3
   ========================================================================== */

.form-control {
    display: block;
    width: 100%;
    height: 34px;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.42857143;
    color: #555;
    background-color: #fff;
    background-image: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
    -webkit-transition: border-color .15s ease-in-out, -webkit-box-shadow .15s ease-in-out;
    -o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.form-control:focus {
    border-color: #66afe9;
    outline: 0;
    -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102,175,233,.6);
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102,175,233,.6);
}

.btn {
    display: inline-block;
    padding: 6px 12px;
    margin-bottom: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.42857143;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 4px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.btn-default {
    color: #333;
    background-color: #fff;
    border-color: #ccc;
}

.btn-default:hover, .btn-default:focus {
    color: #333;
    background-color: #e6e6e6;
    border-color: #adadad;
}

.btn-success {
    color: #fff;
    background-color: #26b99a;
    border: 1px solid #169f85;
}

.btn-success:hover, .btn-success:focus {
    color: #fff;
    background-color: #169f85;
    border: 1px solid #169f85;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-success {
    color: #fff;
    background-color: rgba(38, 185, 154, 0.88);
    border-color: rgba(38, 185, 154, 0.88);
}

.alert-danger {
    color: #e9edef;
    background-color: rgba(231, 76, 60, 0.88);
    border-color: rgba(231, 76, 60, 0.88);
}

/* ==========================================================================
   Layout Login (Thème Gentelella)
   ========================================================================== */

.login_wrapper {
    right: 0;
    margin: 5% auto 0;
    max-width: 350px;
    position: relative;
}

.login_form {
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 22;
}

.login_content {
    margin: 0 auto;
    padding: 25px 0 0;
    position: relative;
    text-align: center;
    text-shadow: 0 1px 0 #fff;
    min-width: 280px;
}

.login_content h1 {
    font: 400 25px Helvetica, Arial, sans-serif;
    letter-spacing: -.05em;
    line-height: 20px;
    margin: 10px 0 30px;
}

.login_content h1:before {
    content: "";
    height: 1px;
    position: absolute;
    top: 10px;
    width: 20%;
    background: #7e7e7e;
    background: linear-gradient(right, #7e7e7e, #fff);
    left: 0;
}

.login_content h1:after {
    content: "";
    height: 1px;
    position: absolute;
    top: 10px;
    width: 20%;
    background: #7e7e7e;
    background: linear-gradient(left, #7e7e7e, #fff);
    right: 0;
}

.login_content form {
    margin: 20px 0;
    position: relative;
}

.login_content form div {
    margin-bottom: 20px;
}

/* Surcharge Gentelella sur les inputs du formulaire */
.login_content form input[type="text"],
.login_content form input[type="email"],
.login_content form input[type="password"] {
    border-radius: 3px;
    box-shadow: 0 1px 0 #fff, inset 0 -2px 5px rgba(0, 0, 0, 0.08);
    border: 1px solid #c8c8c8;
    color: #777;
    margin: 0;
}

.login_content form input:focus {
    box-shadow: inset 0 0 2px #a97aad;
    background-color: #fff;
    border: 1px solid #a878af;
    outline: 0;
}

.login_content .reset_pass {
    margin-top: 13px !important;
    margin-right: 39px;
    float: right;
    font-size: 12px;
}

.login_content .submit {
    float: left;
    margin-left: 38px;
}

.hiddenanchor {
    display: none;
}

/* ==========================================================================
   Animations
   ========================================================================== */

.animate {
    -webkit-animation-duration: 0.5s;
    -webkit-animation-timing-function: ease;
    -webkit-animation-fill-mode: both;
    animation-duration: 0.5s;
    animation-timing-function: ease;
    animation-fill-mode: both;
}

@-webkit-keyframes fadeInLeft {
    0% {
        opacity: 0;
        -webkit-transform: translateX(-20px);
    }
    100% {
        opacity: 1;
        -webkit-transform: translateX(0);
    }
}

@keyframes fadeInLeft {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animation appliquée au chargement (simulée via :target dans le legacy, 
   mais ici on peut l'appliquer par défaut ou via classe) */
#signin:target ~ .login_wrapper .login_form {
    z-index: 22;
    animation-name: fadeInLeft;
    animation-delay: .1s;
}

/* Par défaut pour le premier affichage sans hash */
.login_wrapper .login_form {
    animation-name: fadeInLeft;
    animation-delay: .1s;
}
