/* Gen3 look for the login page (Default.aspx).
   Linked after css/login.css and css/bo-skin-gen3.css: the tokens (--bo-*) and the
   font come from bo-skin-gen3.css, this file only lays out the login card.
   Message.aspx and GetPassword.aspx also use login.css but do not link this file,
   so they keep the old look. */

/* Same compatibility gate as css/bo-skin-gen3.css (see the note at its top): an
   engine without custom properties (IE) skips this file as a unit and keeps
   the old login box from css/login.css. */
@supports (--bo: 0) {
body {
    margin: 0;
    background: var(--bo-bg);
    color: var(--bo-fg);
    font-family: var(--bo-font);
    font-size: 13px;
}

#adminbox {
    width: 400px;
}

/* the logo carries inline width / padding */
#adminbox > img {
    display: block;
    width: 200px !important;
    margin: 0 auto;
    padding: 56px 0 28px !important;
}

/* border-collapse:collapse ignores border-radius, so the card needs separate borders */
.logintable {
    width: 400px;
    border: 0;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--bo-radius);
    background: var(--bo-card);
    box-shadow: var(--bo-card-shadow);
    color: var(--bo-fg);
    font-size: 13px;
    overflow: hidden;
}

.logintable tr th {
    height: auto;
    padding: 28px 30px 6px;
    border-bottom: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 26px;
}

.logintable tr td {
    height: auto;
    padding: 0;
    line-height: 20px;
}

/* language switch: asp:RadioButtonList renders a nested table */
.logintable td table {
    margin: 4px auto 8px;
    color: var(--bo-muted-fg);
}

.logintable td table td {
    padding: 0 8px;
}

.logintable td table label {
    padding-left: 4px;
}

#tdForm {
    padding-bottom: 18px;
}

#txtUser,
#txtCode {
    box-sizing: border-box;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--bo-input);
    border-radius: var(--bo-radius-sm);
    background: var(--bo-card);
    color: var(--bo-fg);
    font-family: var(--bo-font);
    font-size: 14px;
    outline: none;
}

/* 196 + 136 + the inline gap between the two = the 340px inner width of the card */
#txtUser {
    width: 196px;
}

#txtCode {
    width: 100%;
}

#txtUser:focus,
#txtCode:focus {
    border-color: var(--bo-primary);
    box-shadow: 0 0 0 3px rgba(245, 124, 0, 0.18);
}

#btnSendCode,
#btnLogin {
    box-sizing: border-box;
    height: 38px;
    border-radius: var(--bo-radius-sm);
    font-family: var(--bo-font);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

/* inline width:130px on the element */
#btnSendCode {
    width: 136px !important;
    padding: 0 6px;
    border: 1px solid var(--bo-input);
    background: var(--bo-card);
    color: var(--bo-fg);
    vertical-align: top;
}

#btnSendCode:hover {
    border-color: var(--bo-primary);
    background: var(--bo-primary-lighter);
    color: var(--bo-primary-hover);
}

#btnSendCode[disabled] {
    border-color: var(--bo-input);
    background: var(--bo-muted);
    color: var(--bo-hint);
    cursor: default;
}

#btnLogin {
    width: 100%;
    border: 1px solid var(--bo-primary);
    background: var(--bo-primary);
    color: var(--bo-primary-fg);
    font-size: 14px;
}

#btnLogin:hover {
    border-color: var(--bo-primary-hover);
    background: var(--bo-primary-hover);
}

#lblResult,
#lblResult2 {
    color: var(--bo-destructive-text) !important;
    font-size: 12px;
}

/* ---- below the card ---- */
.loginContact,
.loginDownload {
    width: 400px;
    margin: 20px auto 0;
    text-align: left;
    line-height: 22px;
    color: var(--bo-muted-fg);
    font-size: 13px;
}

.loginContact em {
    padding: 0 0 0 6px;
    color: var(--bo-fg);
    font-style: normal;
    font-weight: 500;
}

/* second phone number lines up under the first one */
.loginContact em.loginTel2 {
    padding-left: 30px;
}

.loginContact a,
.loginDownload a {
    color: var(--bo-primary-hover);
    text-decoration: none;
}

.loginContact a:hover,
.loginDownload a:hover {
    text-decoration: underline;
}

.loginDownload a {
    margin-right: 16px;
}

.loginAd {
    display: block;
    width: 400px;
    margin: 24px auto 56px;
    border-radius: var(--bo-radius);
}

} /* end of the @supports compatibility gate */
