@charset "utf-8";

@import url('https://fonts.googleapis.com/css?family=Open+Sans');

body {
    font-family: 'Open Sans', sans-serif !important;
    background: #16365c;
    margin: 0;
    padding: 0;
    background-image: url(../images/01.jpg);
    background-attachment: fixed;
    background-size: cover;
}

/* ===== WRAPPER & HEAD ===== */
.wrapper {}

.head {
    width: 100%;
    padding: 3%;
}

/* ===== CONTAINER ===== */
.container.active .card:nth-child(2) {
    background: #fafafa;
    margin: 0 10px;
}

.container.active .card.alt {
    top: 20px;
    right: 0;
    width: 100%;
    min-width: 100%;
    height: auto;
    border-radius: 5px;
    padding: 60px 0 40px;
    overflow: hidden;
}

.container.active .card.alt .toggle {
    position: absolute;
    top: 40px;
    right: -70px;
    box-shadow: none;
    -webkit-transform: scale(10);
    transform: scale(10);
    -webkit-transition: -webkit-transform .3s ease;
    transition: transform .3s ease;
}

.container.active .card.alt .toggle:before {
    content: '';
}

.container.active .card.alt .title,
.container.active .card.alt .input-container,
.container.active .card.alt .button-container {
    left: 0;
    opacity: 1;
    visibility: visible;
    -webkit-transition: .3s ease;
    transition: .3s ease;
}

/* ===== CARD ===== */
.card {
    position: relative;
    background: #ffffff;
    padding: 0px 0 5px 0;
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    -webkit-transition: .3s ease;
    transition: .3s ease;
    border-bottom: solid 3px #004892;
}

.title {
    background-color: #004994;
    padding: 15px;
    text-align: center;
    color: #fff;
    font-size: 18px;
}

/* ===== SCHOOL LOGO ===== */
.school-logo-box {
    border-bottom: solid thin #eee;
    margin-bottom: 20px;
}

.school-logo-sub-box {
    width: 170px;
    height: 170px;
    margin: 0 auto;
    overflow: hidden;
}

.school-logo-sub-box img {
    width: 100%;
}

/* ===== INPUT CONTAINERS — FLOATING LABEL ===== */
.card .input-container {
    position: relative;
    margin: 0 30px 30px;  /* increased bottom margin to give label room above */
}

.card .input-container label {
    position: absolute;
    top: 8px;             /* sits inside the input visually */
    left: 0;
    color: #757575;
    font-size: 16px;
    font-weight: 300;
    pointer-events: none;
    -webkit-transition: 0.2s ease;
    transition: 0.2s ease;
    z-index: 2;
}

.card .input-container input[type="text"],
.card .input-container input[type="password"] {
    outline: none;
    position: relative;
    z-index: 1;
    background: none;
    width: 100%;
    height: 35px;
    border: 0;
    border-bottom: 1px solid #ddd;
    color: #000;
    font-size: 18px;
    font-weight: 400;
    padding-top: 10px;   /* push text down so label can sit above */
    box-sizing: border-box;
}

/* Label floats UP when input is focused */
.card .input-container input[type="text"]:focus ~ label,
.card .input-container input[type="password"]:focus ~ label {
    top: -18px;
    font-size: 12px;
    color: #9d9d9d;
}

/* Label floats UP when input has a value (JS adds .has-value class) */
.card .input-container.has-value label {
    top: -18px;
    font-size: 12px;
    color: #9d9d9d;
}

/* Bar animation on focus */
.card .input-container input[type="text"]:focus,
.card .input-container input[type="password"]:focus {
    border-bottom-color: #004994;
    outline: none;
}

/* ===== BAR ===== */
.card .input-container .bar {
    position: absolute;
    left: 0;
    bottom: 0;
    background: #ddd;
    width: 100%;
    height: 1px;
}

.card .input-container .bar:before,
.card .input-container .bar:after {
    content: '';
    position: absolute;
    background: #004994;
    width: 0;
    height: 2px;
    -webkit-transition: .2s ease;
    transition: .2s ease;
    bottom: 0;
}

.card .input-container .bar:before { left: 50%; }
.card .input-container .bar:after  { right: 50%; }

.card .input-container input[type="text"]:focus ~ .bar:before,
.card .input-container input[type="text"]:focus ~ .bar:after,
.card .input-container input[type="password"]:focus ~ .bar:before,
.card .input-container input[type="password"]:focus ~ .bar:after {
    width: 50%;
}

/* ===== HIDDEN BROWSER IDENTITY FIELD ===== */
.identity {
    display: none;
}

/* ===== BUTTON ===== */
.card .button-container {
    margin: 20px 30px 10px;
    text-align: center;
}

.card .button-container button {
    outline: 0;
    cursor: pointer;
    position: relative;
    display: inline-block;
    background-color: #025AB3;
    border: 1px solid #ccc;
    padding: 15px 30px;
    font-size: 18px;
    line-height: 1;
    overflow: hidden;
    -webkit-transition: .3s ease;
    transition: .3s ease;
    width: 100%;
}

.card .button-container button span {
    position: relative;
    z-index: 1;
    color: #fff;
    -webkit-transition: .3s ease;
    transition: .3s ease;
}

.card .button-container button:hover {
    background-color: #004994;
    border-color: #004994;
}

/* ===== FORGOT PASSWORD ===== */
.forgot p {
    text-align: center;
    font-size: 13px;
}

/* ===== ALERTS ===== */
.alert {
    padding: 8px;
    margin-bottom: 20px;
    border: 1px solid transparent;
}

.alert-danger {
    color: #b94a48;
    background-color: #f2dede;
    border-color: #ebccd1;
    font-size: 13px;
    margin-top: 10px;
}

.close {
    background: #F00;
    border-radius: 50%;
    color: #fff;
    width: 20px;
    height: 20px;
    float: right;
    border: 0;
    cursor: pointer;
}

/* ===== CAPTCHA ===== */
.captcha-row {
    text-align: center;
    font-size: 13px;
    color: #555;
}

.captcha-row p {
    padding-bottom: 10px;
}

.captcha-code img {
    height: 60px;
}

.captcha-code input {
    text-align: center !important;
}

/* ===== RERUN ===== */
.rerun {
    margin: 0 0 30px;
    text-align: center;
}

.rerun a {
    cursor: pointer;
    display: inline-block;
    background: #ed2553;
    border-radius: 3px;
    padding: 10px 20px;
    color: #ffffff;
    text-decoration: none;
    -webkit-transition: 0.3s ease;
    transition: 0.3s ease;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .title {
        padding: 8px;
        font-size: 14px;
    }

    .school-logo-box {
        margin-bottom: 10px;
    }

    .card .button-container button {
        padding: 10px 40px;
        font-size: 15px;
    }

    .school-logo-sub-box {
        width: 160px;
        height: 90px;
        margin-bottom: 5px;
    }

    .card .button-container {
        margin: 15px 30px 10px;
    }

    .card .input-container input {
        font-size: 15px;
    }

    .card .input-container {
        margin: 0 30px 25px;
    }
}

@media (max-width: 768px) {
    .head {
        width: 250px;
        margin: 0 auto;
    }

    .head img {
        width: 100%;
    }

    .wrapper {
        margin-bottom: 20px;
    }

    .forgot p {
        font-size: 11px;
    }

    .title {
        padding: 15px;
        font-size: 18px;
    }

    .card .input-container {
        margin: 0 30px 25px;
    }

    .card .input-container input {
        font-size: 18px;
    }

    .card .button-container {
        margin: 20px 30px 10px;
    }

    .school-logo-box {
        margin-bottom: 20px;
    }

    .school-logo-sub-box {
        width: 170px;
        height: 100px;
        margin-bottom: 5px;
    }

    .card .button-container button {
        padding: 15px 40px;
        font-size: 18px;
    }
}