﻿html {
    position: relative;
    height: 100%;
    width: 100%;
    font-size: 20px;
    min-width: 430px;
}

/*@media (min-width: 768px) {
    html {
        font-size: 18px;
    }
}*/

*, *::before, *::after {
    box-sizing: border-box;
    font-family: 'Noto Sans TC', sans-serif;
}

body {
    margin: 0;
    height: 100%;
    width: 100%;
    background-color: #E4E4ED;
    color: #1E1E1E;
}


.img_logo {
    width: 100%;
    margin: 15px 0 0 0;
}

#idp_title {
    font-weight: bold;
    color: indigo;
    font-size: 1.2rem;
    background-color: #ebffcc;
    padding: 10px;
    margin-bottom: 10px;
}

/* Login Page */
#background-container {
    float: left;
    width: 100%;
    height: 100%;
}

#background-image {
    height: 100%;
    margin-right: 500px;
    margin-left: 0px;
    background-color: inherit;
    background-repeat: no-repeat;
    background-size: cover;
    background-image: url(../images/cover-1.jpg);
}

#content-container {
    position: relative;
    width: 500px;
    height: 100%;
    overflow: auto;
    background-color: #ffffff;
    margin-left: -500px;
    margin-right: 0px;
    float: left;
}

#content {
    min-height: 100%;
    height: auto !important;
    margin: 0 auto -55px auto;
    padding: 0px 50px 0px 50px;
    width: 500px;
}

@media only screen and (max-width: 600px) {
    html, body {
        min-width: 260px;
    }

    #background-container {
        display: none;
    }

    #content-container {
        float: none;
        width: 100%;
        margin: 0px auto;
    }

    #content {
        width: 400px;
        padding-left: 0px;
        padding-right: 0px;
        margin-left: auto;
        margin-right: auto;
    }
}


/* Provide sufficient contrast against white background */
a {
    color: #0366d6;
    text-decoration: none;
}

.btn {
    display: inline-block;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    padding: .375rem .75rem;
    font-size: 1rem;
    border-radius: .25rem;
    transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn-secondary {
    color: #fff;
    background-color: #545b62;
    border-color: #4e555b;
}

.btn-outline-info {
    color: #fff;
    background-color: transparent;
    background-color: #32af59;
    border-color: #32af59;
}

    .btn-outline-info:hover {
        color: #fff;
        background-color: #1D8348;
        border-color: #1D8348;
    }

.btn:focus {
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

.btn-secondary:focus {
    box-shadow: 0 0 0 0.2rem rgba(108,117,125,.5);
}

.btn-outline-info:focus {
    box-shadow: 0 0 0 0.2rem rgba(23,162,184,.5);
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

.btn-secondary:hover {
    color: #fff;
    background-color: #5a6268;
    border-color: #545b62;
}




.container {
    margin: 0 auto;
    /*    width: 1200px;*/
}



.navbar {
    display: flex;
    height: 4rem;
    align-items: center;
    margin-bottom: 1rem;
    user-select: none;
    background-color: #564FC1;
    padding: 0px 10px;
}

.navbar-logo {
    height: inherit;
    display: inline-block;
}

    .navbar-logo > img {
        padding: 10px 0px;
        height: 100%;
        vertical-align: middle;
    }

    .navbar-logo > .logo-text {
        display: inline-block;
        vertical-align: middle;
        color: white;
        font-size: 1.3rem;
    }

.nav-link {
    display: block;
    padding: 0.5rem 1rem;
    cursor: pointer;
}

#acct-menu {
    position: relative;
    justify-content: center;
    margin-left: auto;
    font-size: 1.1rem;
}

.dropdown-menu-main {
    display:flex;
    align-items: center;
    height:100%;
}
/*    #acct-menu .acct-username {
        position: absolute;
        right: 0.5rem;
        width: 10rem;
        padding: .375rem .75rem;
        text-align: right;
    }
*/
#acct-menu .dropdown-toggle {
    padding: 0px !important;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow-x: hidden;
    position: relative;
    color: #becec1;
}

        #acct-menu .dropdown-toggle:focus,
        #acct-menu .dropdown-toggle:hover {
            outline: none;
            box-shadow: none;
        }

.dropdown-menu-main:hover .dropdown-menu-right {
    display: block !important
}


.dropdown-toggle::after {
    display: inline-block;
    margin-left: 0.255em;
    vertical-align: 0.255em;
    content: "";
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
}

.dropdown-menu {
    position: absolute;
    top: 80%;
    right: 0;
    z-index: 1000;
    display: none;
    min-width: 10rem;
    padding: 0.5rem 0;
    margin: 0.125rem 0 0;
    font-size: 1rem;
    color: #212529;
    text-align: left;
    list-style: none;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 0.25rem;
}

.mobile-username {
    display:none;
}

#acct-menu .acct-username::before {
    content: attr(data-user);
    display: inline-block;
    /*position: absolute;
    right: .5rem;    */
    line-height: 1.5;
    text-align: right;
/*    text-overflow: ellipsis;*/
    white-space: nowrap;
    overflow: hidden;
/*    max-width: 9.25rem;*/
    color: white;
    font-weight: 600;
    padding-left: 1.25rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23becec1' viewBox='0 0 16 16'%3E%3Cpath d='M3 14s-1 0-1-1 1-4 6-4 6 3 6 4-1 1-1 1H3zm5-6a3 3 0 1 0 0-6 3 3 0 0 0 0 6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left;
    background-size: 1rem 1rem;
}

#acct-menu .dropdown-menu::before {
    display: none;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 0.25rem 1.5rem;
    clear: both;
    font-weight: 400;
    color: #495798;
    text-align: inherit;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
}

    .dropdown-item.nav-link:focus,
    .dropdown-item.nav-link:hover {
        color: #32af59;
    }


/*    .form-horizontal,
    .form {
        border-radius: 1rem;
        border: 1px solid #cacaca;
        margin: 0 auto;
        padding: 1rem;
        background-color: #fcffff;
    }

    .form {
        width: 95%;
        box-shadow: 1px 3px 2px #d0cfcf;
    }*/

.small-form {
    max-width: 25rem;
}

.form-title {
    font-size: 1.5rem;
    margin: .5rem 0;
    font-weight: 600;
    color: #564FC1;
    text-align: center;
}

.remote_message {
    width: 100%;
}

.form-group {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    align-content: flex-start;
    flex: 1 0 auto;
}


.form-group,
.form-operation-group {
    padding: .5rem 0;
    margin: 0;
}

.control-label {
    font-family: sans-serif;
    color: #444444;
    margin-bottom: .25rem;
    width: 100%;
}

.mandatory > .control-label::after {
    content: "*";
    color: red;
    padding-left: 2px;
}

.form-control {
    display: block;
    width: 100%;
    height: calc(1.5em + 0.75rem + 2px);
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-operation-group {
    text-align: center;
    width: 100%;
}

/* validation start */
.form-group .validation-message {
    display: none;
    padding-top: .25rem;
    color: red;
    font-size: 0.9rem;
}

.form-group.invalid-required .validation-message.invalid-required-msg,
.form-group.invalid-regex .validation-message.invalid-regex-msg,
.form-group.invalid-min .validation-message.invalid-min-msg,
.form-group.invalid-max .validation-message.invalid-max-msg,
.form-group.invalid-size .validation-message.invalid-size-msg,
.form-group.invalid-unique .validation-message.invalid-unique-msg {
    display: block;
}

.form-notes {
    margin-top: .5rem;
    color: #268624;
}

/* logged out */
.slo-iframe {
    position: absolute;
    top: -1px;
    left: 0;
    width: 1px;
    height: 1px;
}
/* logged out end */

/* Form start */
#change_password_form, #reset_password_form, #activateaccount_form {
    margin: 0 auto;
}
/* Form end */

#login_view {
    display: flex;
    margin: 2rem 0;
}

#logo_desc_container {
    flex: 1 0 60%;
}

    #logo_desc_container > .logo-img {
        vertical-align: middle;
        width: 100px;
    }

    #logo_desc_container > .logo-desc {
        font-size: 2rem;
        color: #8746a9;
        font-weight: 800;
        font-family: sans-serif;
        margin-left: 3rem;
    }
/*
    #login-form {
        min-width: 200px;
        margin: 0 auto;
        border-radius: 1rem;
        background: #fff;
        padding: 2rem;
        flex: 1 0 35%;
        box-shadow: 0px 1px 6px 2px #d4d0d0;
    }*/

#login-form a {
    text-decoration: none;
}

#login-form .client_name {
    font-weight: 600;
    color: red;
}

.btn.submit-btn {
    background-color: #32af59;
    color: #fff;
    width: 100%;
    line-height: 2;
    border: 0;
    border-radius: .25rem;
}

.dialog {
    width: 25rem;
    max-width: 100%;
    margin: 1rem auto;
    border: 1px solid #ffa500;
    border-radius: .5rem;
    padding: 1rem;
    font-family: sans-serif;
    background: #fafad2;
}


.noselect {
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

.show {
    display: block !important;
}

@media screen and (min-width: 768px) {
    .form-horizontal > .form-group > .control-label {
        flex: 0 0 25%;
    }

    .form-horizontal > .form-group > .form-control {
        flex: 1 0 70%;
    }

    .form-horizontal > .form-group > .validation-messages {
/*        margin-left: 25%;*/
        flex: 1 0 70%;
    }
}


/*@media screen and (max-width: 1199px) {
    .container {
        width: calc(100% - 2rem);
    }
}*/

@media screen and (max-width: 767px) {
    .container {
        width: 100%;
    }

    #login_view {
        flex-wrap: wrap;
        padding: 0 7.5%;
    }

    #logo_desc_container {
        flex: 0 0 100%;
        text-align: center;
    }

        #logo_desc_container > .logo-img {
            width: 80px;
        }

        #logo_desc_container > .logo-desc {
            margin-left: 0;
        }

    #login-form {
        flex: 0 0 100%;
    }
}

@media screen and (max-width: 1000px) {

    .navbar {
        height: 3rem;
    }

    .logo-text span {
        display: none;
    }

    .logo-text:after {
        content: '圖書館系統 Library System';
    }

    .navbar-logo > .logo-text, #acct-menu a{
        font-size: 0.9rem;
    }

    #acct-menu .dropdown-toggle {
        width: 3rem;
        height: 80px;
        padding: 0px;
    }

        #acct-menu .dropdown-toggle::before {
            content: "";
            display: block;
            width: 100%;
            height: 100%;
            background-repeat: no-repeat;
            background-size: 100%;
            background-position: center;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23becec1' viewBox='0 0 16 16'%3E%3Cpath d='M6 8a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-5 6s-1 0-1-1 1-4 6-4 6 3 6 4-1 1-1 1H1zM11 3.5a.5.5 0 0 1 .5-.5h4a.5.5 0 0 1 0 1h-4a.5.5 0 0 1-.5-.5zm.5 2.5a.5.5 0 0 0 0 1h4a.5.5 0 0 0 0-1h-4zm2 3a.5.5 0 0 0 0 1h2a.5.5 0 0 0 0-1h-2zm0 3a.5.5 0 0 0 0 1h2a.5.5 0 0 0 0-1h-2z'/%3E%3C/svg%3E");
        }

        #acct-menu .dropdown-toggle::after {
            display: none;
        }


    .acct-username {
        display:none;
    }

    .mobile-username {
        display: block;
    }

        .mobile-username::before {
            content: attr(data-user);
            /*position: absolute;
    right: .5rem;    */
            line-height: 1.5;
            text-align: right;
            text-overflow: ellipsis;
            white-space: nowrap;
            overflow: hidden;
            max-width: 9.25rem;
            color: white;
            font-weight: 600;
            padding-left: 1.25rem;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23becec1' viewBox='0 0 16 16'%3E%3Cpath d='M3 14s-1 0-1-1 1-4 6-4 6 3 6 4-1 1-1 1H3zm5-6a3 3 0 1 0 0-6 3 3 0 0 0 0 6z'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: left;
            background-size: 1rem 1rem;
        }


    .dropdown-menu {
        top: 2.5rem;
        width: 80vw;
        text-align: center;
    }

    #login_view {
        flex-wrap: wrap;
        padding: 0 1rem;
    }

    #change_password_view, #reset_password_form, #activateaccount_form {
        padding: 0 15px;
    }

}

.text-center {
    text-align: center;
}

.text-red {
    color: red;
}
