﻿html, body {
    margin:0;
    padding:0;
    height: 100%;
    width: 100%;
}

body {
    background:white;
}

.top-bar {
    height: 60px;
    background-color: #2b2b2b;
    top: 0px;
    width: 100%;
}

.top-bar2{
    height: 20px;
    background-color: #3668c9;
    width: 100%;
 }

.loginPostion {
    display: flex;
    position: relative;
    overflow: auto;
    transform: translatey(50%);
    justify-content: center;
}

.loginPostion img{
    margin-bottom:auto;
}

#login_box {
    position: relative;
    margin-left: 20px;
    background-color: #efefef;
    border: 1px solid #b5b5b5;
    padding: 10px 0 10px 0;
    border-radius: 4px;
}

#login_box label {
    display:inline-block;
    padding-top:0;
    vertical-align:middle;
}

#staylogIn label {
    padding-top:0px;
}

#login_box div {
    clear:both;
    padding:10px;
}

/* Validator container — no padding when empty */
#login_box div.validators {
    padding: 0 10px;
}

.login_field {
    margin-left:5px;
    float:right;
    width:250px;
    height:28px;
    border:1px solid #b5b5b5;
    border-radius:4px;
    vertical-align:middle;
    box-sizing:border-box;
}

#resetPswd {
    font-size:12px;
    margin-top:10px;
    color:#4f97d1;
    text-decoration:none;
    padding-right:4%;
}

.restPwd {
    text-align:right;
    clear:both;
    padding:10px 0 0 0;
}

.btn {
    border: none;
}

/* Stay-logged-in + Login button row — centred */
#login_box .login-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    clear: both;
    padding: 10px 10px 4px 10px;
}

/* Stay-logged-in pill */
#staylogIn {
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    font-size:13px;
    height: 42px;
    background-color:#DDDBDB;
    border:1px solid #b5b5b5;
    color:#565353;
    border-radius:4px;
    vertical-align:middle;
    box-sizing:border-box;
}

.chkStayLogIn label { 
    position: relative; 
    top: 0;
    margin-left: 4px;
} 

.validatorError {
    color: red;
    position: relative;
    display: block;
    margin-bottom: 4px;
}

/* -------------------------------------------------------
   Primary button style — shared by Login and SSO buttons
   Targets input[type=submit] (ASP.NET Button renders as input)
------------------------------------------------------- */
.primaryButton,
input.primaryButton,
button.primaryButton,
input[type="submit"].primaryButton {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #4f97d1;
    color: #ffffff !important;
    border: 1px solid #3b7fbf;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    vertical-align: middle;
    box-shadow: none;
}

.primaryButton:hover,
.primaryButton:focus,
input.primaryButton:hover,
input.primaryButton:focus {
    background-color: #3b7fbf;
    outline: none;
}

/* Login button */
#btnLogin, #btnPwReset {
    height: 42px;
    width: 100px;
    padding: 0 10px;
}

/* SSO button — wider, same height as Login button */
.primaryButton.ssoButton,
input.primaryButton.ssoButton {
    min-width: 200px;
    height: 42px;
    padding: 0 20px;
}

.gridLayout-footer {
    flex: 0;
    height: 20px;
    background-color: #2b2b2b;
    color: white;
    padding-top: 5px;
    font-size: 12px;
    text-align: center;
    bottom: 0px;
    width: 100%;
    position: fixed;
}

.login-info-msg {
    background-color: #fff8e1;
    border-left: 4px solid #f0a500;
    border-radius: 4px;
    padding: 10px 12px;
    margin: 0 10px 14px 10px;
    font-size: 13px;
    color: #5a4a00;
    line-height: 1.5;
}

.login-info-msg a {
    color: #3b7fbf;
    text-decoration: underline;
}

/* SSO section — reduce top gap */
#login_box .sso-section {
    text-align: center;
    padding: 4px 10px 10px 10px;
}