@font-face { font-family: SourceSansPro; src: url('https://hkuportal.hku.hk/css-2022/SourceSansPro-Regular.ttf'); } 

* {
    padding: 0;
    margin: 0;    
    font-size: 16px;
    font-family: SourceSansPro, sans-serif;
}

html {
	margin: 0;
	padding: 0;
	height: 100%;
}

body {    
    background: url('https://portali.hku.hk/cas-login-2022/login_bg.jpg') no-repeat center fixed; 
    width: 100vw;
    height: 100%;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    background-position: 80% 80%;
}

a {
    color: unset;
    text-decoration: none;
}

.container {
    min-height: 100%;
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.7);
}

.container-body {
    width: 25%;
    min-width: 330px;
    padding-top: 20px;
    padding-bottom: 20px;
}

.login-modal {
    background-color: rgba(255, 255, 255, 0.72);
    width: 100%;
    height: auto;
    margin: auto;
    text-align: center;
    border-radius: 15px;
    box-shadow: rgb(112 112 112 / 20%) 0px 0px 9px;
}

.hku-logo {
    width: 86%;
    padding-top: 10%;
    padding-bottom: 6%;
    display: initial;
}

.portal-title {
    font-size: 1.55em;
    color: #707070;
    font-weight: normal;
}

.test-remark {
    font-size: 1.2em;
    color: red;
    display: none;
}

.login-form {
    margin-top: 3%;
    width: 100%;
    text-align: center;
}

.login-input {
    width: 84%;
    margin-left: 8%;
}

input[type=text], 
input[type=password] { 
    width: 100%; 
    padding: 8px 15px 8px 40px;
    margin: 3px 0; 
    display: inline-block; 
    border: 1px solid #a2a4a4; 
    border-radius: 5px;
    box-sizing: border-box; 
    background-color: rgba(255, 255, 255, 0.72);
    color: #545454;
} 

input[type=text]:active,
input[type=password]:active {
    border: 1px solid #8ec63f;
}

input[type=text]:hover,
input[type=password]:hover {
    border: 1px solid #8ec63f;
}

.login-input {
    position: relative;
}
  
.login-input i{
    position: absolute;
    left: 15px;
    top: 13px;
    color: #707070;
}

.login-form a {
    float: right;
    color: #025A91;
    margin-top: 10px;
    margin-right: 10%;
}

.login-form a:hover {
    text-decoration: underline;
}

.login-btn {
    margin-top: 7%;
    color: #000000;
    font-size: 1.06em;
    width: 84%;
    padding: 8px;
    background-color: #8ec63f;
    border: 0px;
    border-radius: 5px;
    border: 2px solid #8ec63f;
    -moz-appearance: none; 
    -webkit-appearance: none;
}
.login-btn:hover {
    cursor: pointer;
    border: 2px solid #668937;
}
.login-btn:active {
    border: 2px solid #668937;
}

.reset-pin-section {
    margin-top: 8%;
}
.reset-pin-section a {
    color: #668937;
    font-size: 1em;
    text-decoration: underline;
}
.reset-pin-section a:hover {
    font-weight: bolder;
}

.twofa-btn {
    margin-top: 7%;
    color: #000000;
    font-size: 1.06em;
    width: 82%;
    padding: 10px 8px;
    background-color: #8ec63f;
    border: 0px;
    border-radius: 5px;
    border: 2px solid #8ec63f;
}
.twofa-btn:hover {
    cursor: pointer;
    border: 2px solid #668937;
}
.twofa-btn:active {
    border: 2px solid #668937;
}
.twofa-link-section {
    margin-top: 14%;
    width: 84%;
    margin-left: 8%;
}
.twofa-link-section a {
    color: #668937;
    font-size: 1em;
    text-decoration: underline;
    overflow-wrap: break-word;
}
.twofa-link-section a:hover {
    font-weight: bolder;
}

.quick-links-section {
    width: 100%;
    text-align: -moz-center;
    text-align: -webkit-center;
    text-align: -o-center;
    text-align: -ms-center;
    padding-bottom: 10%;
}

.quick-links {
    margin-top: 8%;
    width: 84%;
}

.quick-links button {
    width: 100%;
    text-align: center;
    padding: 8px;
    border: 1px solid #a2a4a4; 
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.72);
    color: #545454;
    margin-top: 2%;
}

.quick-links button:hover{
    cursor: pointer;
    border: 1px solid #8ec63f;
    background-color: rgba(142, 198, 63, 0.72);
    color: #000000;
}

.footer {
    position: absolute;
    bottom: 0px;
    left: 0px;
    color: #FFFFFF;
    background-color: rgba(0,0,0,.6);
    width: 100vw;
    margin: 0;
    font-size: 0.8em;
    padding-top: 3px;
    padding-bottom: 3px;
}

.footer span {
    padding-left: 5px;
    font-size: 0.8em;
}

.footer a {
    color: #FFFFFF;
    font-size: 0.8em;
}

.maint-msg {
    display: flex;
    margin-top: 5%;
    color: #868585;
    border-top: 8px solid #8ec63f;
    padding: 10px 10px 0px 10px;
    padding-left: calc(8% + 5px);
    padding-right: calc(8% + 5px);
}
.maint-msg i{
    color: #e9594c;
    font-size: 1em;
    line-height: 120%;
}
.maint-msg p { 
    font-size: 0.94em;
    word-break: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    padding-left: 10px;
    text-align: left;
    line-height: 120%;
}
#maint-msg-link { 
    float: right;
    margin-top: 5px;
    margin-right: calc(8% + 5px);
    font-size: 0.94em;
    margin-bottom: 15px;
    color: #668937;
}
#maint-msg-link:hover {
    cursor: pointer;
    color: #8ec63f;
}

.info-msg {
    display: flex;
    margin-top: 5%;
    color: #868585;
    border-top: 8px solid #8ec63f;
    padding: 10px 10px 0px 10px;
    padding-left: calc(8% + 5px);
    padding-right: calc(8% + 5px);
}
.info-msg i{
    color: #8ec63f;
    font-size: 1em;
    line-height: 120%;
}
.info-msg p { 
    font-size: 0.94em;
    word-break: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    padding-left: 10px;
    text-align: left;
    line-height: 120%;
}

.error-msg {
    display: flex;
    margin-top: 5%;
    color: #e9594c;
    padding: 10px 10px 0px 10px;
    padding-left: calc(8% + 5px);
    padding-right: calc(8% + 5px);
    justify-content: center;
}

.error-msg i{
    color: #e9594c;
    font-size: 1.2em;
    align-self: center;
}

.error-msg p{
    margin-left: 10px;
    font-size: 1em;
}

/* */
.twofa-input-form {
    width: 100%;
    text-align: center;
    margin-top: 10px;
    padding-bottom: 5%;
}

.twofa-input-form p {
    font-size: 1em;
    text-align: left;
    padding-left: 8%;
    margin-top: 6%;
    margin-bottom: 3%;
}

.twofa-input-form input[type=text] {
    padding: 8px 15px 8px 15px;
}
.twofa-input-form input[type=submit],
.twofa-input-form input[type=reset] {
    margin-top: 7%;
    color: #000000;
    font-size: 1em;
    width: 82%;
    padding: 8px;
    background-color: #8ec63f;
    border: 0px;
    border-radius: 5px;
    border: 2px solid #8ec63f;
}
.twofa-input-form input[type=submit]:hover ,
.twofa-input-form input[type=reset]:hover {
    cursor: pointer;
    border: 2px solid #668937;
}
.twofa-input-form input[type=submit]:active ,
.twofa-input-form input[type=reset]:active {
    border: 2px solid #668937;
}
/* */

.logout {
    width: 84%;
    margin-left: 8%;
    text-align: left;
}
.logout-title {
    margin-top: 6%;
    margin-bottom: 6%;
    font-weight: bolder;
    text-align: center;
}