/* Login style */
@import url(//spoqa.github.io/spoqa-han-sans/css/SpoqaHanSansNeo.css);

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

body {
    background-image: url('../images/ee_background.jpg');
    margin: 0;
    width: 100vw;
    height:100vh;
    font-family: 'Spoqa Han Sans Neo', 'sans-serif';
    background-repeat: no-repeat;
    background-position: center;
    border-top: 75px solid rgba(0, 0, 0, 0.4);
    border-bottom: 75px solid rgba(0, 0, 0, 0.4);
    border-left: 120px solid rgba(0, 0, 0, 0.4);
    border-right: 120px solid rgba(0, 0, 0, 0.4);
}

.login {
    position: fixed;
    top: 75px;
    left: 75px;
    width: 580px;
    height: calc(100vh - 150px);
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
    padding: 28px 0;
}

/* Auto margins centre the content while it fits and fall back to top-aligned
   scrolling when it doesn't (e.g. the local-login form opened), instead of
   justify-content: center pushing the logo off the bottom. */
.login .form-wrapper {
    margin-top: auto;
}

.login .logo {
    margin-bottom: auto;
}

.login h1 { 
    color: #3282E0; 
    font-size: 33px;
    font-weight: 700;
    letter-spacing: 2px;
    text-align:center;
    margin-bottom: 28px;
    margin-top: 0;
}

.login p {
    font-size: 15px;
    color: #666;
    font-weight: 500;
    text-align: center;
    margin-top: 0;
    margin-bottom: 20px;
}

input { 
    width: 100%; 
    height: 58px;
    margin-bottom: 25px; 
    border: 1px solid #D2D1D1;
    outline: none;
    padding: 10px;
    font-size: 13px;
    color: #666;
    border-radius: 3px;
    transition: all 0.3s;
}

input::-webkit-input-placeholder { /* Edge */
    color: #888;
}
    
input:-ms-input-placeholder { /* Internet Explorer 10-11 */
    color: #888;
}
    
input::placeholder {
    color: #888;
}

.login button {
    background: #3182E0;
    height: 58px;
    border-radius: 3px;
    width: 100%;
    border: none;
    color: #fff;
    text-transform: uppercase;
    font-size: 15px;
    font-weight: 400;
    margin-bottom: 25px;
}

p.copyright {
    color: #888;
    font-size: 14px;
    letter-spacing: -0.8px;
    font-weight: 400;
}

.login .form-wrapper {
    width: 50%;
}

.login .logo {
    margin-top: 20px;
}

input:focus { 
    border: 1px solid #3282E0;
    color: #3282E0;
 }

.login-error {
    height: 50px;
    background-color: rgba(250, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    color: red;
    width: 90%;
    position: absolute;
    top: 1px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
}

.login-error.show {
    display: flex;
    animation: slideDown 0.3s;
}

@keyframes slideDown {
    0% {
        opacity: 0;
        margin-top: -30px;
    }
    100% {
        opacity: 1;
        margin-top: 0;
    }
}
/* SSO (company Google account) - the main login path */
.btn-sso {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 58px;
    padding: 0 16px;
    background: #3182E0;
    border-radius: 3px;
    color: #fff;
    text-decoration: none;
    transition: background 0.3s;
}

.btn-sso:hover,
.btn-sso:focus {
    background: #2468b8;
}

.btn-sso-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 34px;
    height: 34px;
    margin-right: 14px;
    background: #fff;
    border-radius: 3px;
}

.btn-sso-label {
    display: flex;
    flex-direction: column;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.35;
}

.btn-sso-label small {
    font-size: 12px;
    font-weight: 400;
    opacity: 0.85;
}

.login p.login-help {
    margin: 14px 0 10px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.6;
    color: #888;
}

.link-sub {
    display: block;
    text-align: center;
    font-size: 13px;
    color: #3282E0;
    text-decoration: none;
}

.link-sub:hover {
    text-decoration: underline;
}

.divider {
    display: flex;
    align-items: center;
    margin: 22px 0 14px;
    color: #aaa;
    font-size: 12px;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    border-top: 1px solid #E3E3E3;
}

.divider span {
    padding: 0 12px;
}

/* Local (email/password) login - collapsed, for external accounts */
.local-login {
    margin-bottom: 20px;
}

.local-login summary {
    cursor: pointer;
    text-align: center;
    font-size: 14px;
    color: #666;
    list-style: none;
}

.local-login summary::-webkit-details-marker {
    display: none;
}

.local-login summary::after {
    content: "\25BE";
    margin-left: 6px;
    font-size: 11px;
}

.local-login[open] summary {
    margin-bottom: 20px;
}

.local-login[open] summary::after {
    content: "\25B4";
}

.local-login input {
    height: 50px;
    margin-bottom: 14px;
}

.login button.btn-outline {
    height: 50px;
    margin-bottom: 0;
    background: #fff;
    border: 1px solid #3182E0;
    color: #3182E0;
    cursor: pointer;
    transition: all 0.3s;
}

.login button.btn-outline:hover {
    background: #3182E0;
    color: #fff;
}

@media (max-width: 768px) {
    body {
        border-width: 16px;
    }

    .login {
        top: 16px;
        left: 16px;
        width: calc(100vw - 32px);
        height: calc(100vh - 32px);
        padding: 40px 0;
    }

    .login .form-wrapper {
        width: calc(100% - 32px);
        max-width: 360px;
    }
}
