/* ===========================================
   ADVICE ONLINE - MODERN PUBLIC PAGES
   Overrides homeSiteMasters.css for Login,
   Register, ForgottenPassword, SMS 2FA.
   Matches the authenticated app's design language.
   =========================================== */


/* ---- Background ---- */

.bgWrapper {
    background-color: #1e2a3a;
    background-image: none;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    width: 100%;
    height: auto;
    min-height: 100vh;
}

@supports (backdrop-filter: blur(7px)) {
    .bgWrapper .blur {
        background: rgba(30, 42, 58, 0.55);
        min-height: 100vh;
        height: auto;
    }
}


/* ---- Layout: flex centering ---- */

.bgWrapper > .wrapper.customer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    height: auto;
    width: 100%;
    padding: 0;
}

.bgWrapper > .wrapper.customer > form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
    padding: 40px 20px;
    box-sizing: border-box;
}


/* ---- Hide old header (logo area + language selector) ---- */

.bgWrapper .header {
    display: none;
}


/* ---- Content holder: transparent centering wrapper ---- */

.content-holder {
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 0;
    opacity: 1 !important;
    background-color: transparent !important;
    position: static;
}


/* ---- Card ---- */

.content.office {
    width: 420px;
    max-width: 100%;
    margin: 0;
    padding: 0;
    float: none;
}

.officeBlock {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
    padding: 40px;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.officeBlock p {
    margin: 0;
    padding: 0;
    font-weight: normal;
    float: none;
    width: auto;
}


/* ---- Accent bar (disabled) ---- */

.ao-public-accent {
    display: none;
}


/* ---- Logo (below the card, white version on dark background) ---- */

.ao-public-logo {
    width: 160px;
    height: 44px;
    margin: 40px auto 0;
    background: url("../Home/images/logo-white.png") no-repeat center center;
    background-size: contain;
    flex-shrink: 0;
}


/* ---- Form sections ---- */

.officeBlock .logIn,
.officeBlock .account,
.content.office .officeBlock .logIn,
.content.office .officeBlock .account,
.content.office .logIn {
    float: none;
    width: 100%;
    padding: 0;
    margin: 0;
    color: #4D5A65;
    display: block;
}


/* ---- Title ---- */

.officeBlock h4,
.content.office .logIn h4 {
    font-family: CenturyGothicRegular, Arial, sans-serif;
    font-size: 20px;
    color: #4D5A65;
    padding: 0 0 24px;
    margin: 0;
    text-align: center;
    font-weight: normal;
}


/* ---- Inputs ---- */

.officeBlock input[type="text"],
.officeBlock input[type="password"],
.content.office .logIn input[type="text"],
.content.office .logIn input[type="password"] {
    width: 100%;
    height: 44px;
    line-height: 44px;
    border: 1px solid #dce1e6;
    border-radius: 6px;
    padding: 0 14px;
    margin: 0 0 14px;
    font-size: 14px;
    font-family: CenturyGothicRegular, Arial, sans-serif;
    color: #4D5A65;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.officeBlock input[type="text"]:focus,
.officeBlock input[type="password"]:focus {
    border-color: #4D5A65;
    outline: none;
}

.officeBlock input[type="text"]::placeholder,
.officeBlock input[type="password"]::placeholder {
    color: #a0aab4;
}

.officeBlock input.denied {
    border-color: #AC122C !important;
    background-image: none !important;
    background-position: initial !important;
}

.officeBlock input.accepted {
    border-color: #28a745 !important;
    background-image: none !important;
    background-position: initial !important;
}

/* Hide fake password fields; show real password fields with HTML5 placeholder instead */
.officeBlock .passwordNone {
    display: block !important;
}

#txtPasswordFake,
#txtRepeatPasswordFake {
    display: none !important;
}


/* ---- Submit button ---- */

.officeBlock .buttonSend {
    display: block !important;
    margin-top: 8px !important;
}

.content.office .officeBlock .buttonSend input,
.content.office .logIn .buttonSend input,
.officeBlock .buttonSend input[type="submit"] {
    display: block !important;
    width: 100% !important;
    height: 44px !important;
    line-height: 44px !important;
    background: #4D5A65 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-family: CenturyGothicRegular, Arial, sans-serif !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    cursor: pointer !important;
    transition: opacity 0.2s ease !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
    box-sizing: border-box !important;
}

.officeBlock .buttonSend input[type="submit"]:hover {
    opacity: 0.85;
}


/* ---- Links ---- */

.officeBlock a.forgottenPassword,
.officeBlock a.registration,
.officeBlock span.registration {
    color: #8c98a4;
    font-size: 13px;
    font-family: CenturyGothicRegular, Arial, sans-serif;
    text-decoration: none;
    font-weight: normal;
    background: none;
    padding: 0;
    display: inline-block;
    margin-top: 16px;
}

.officeBlock a.forgottenPassword:hover,
.officeBlock a.registration:hover {
    color: #4D5A65;
    text-decoration: underline;
}

a.more {
    background-image: none;
    padding-right: 0;
}

.officeBlock .logIn p,
.officeBlock .account p {
    font-weight: normal;
    padding: 8px 0;
}


/* ---- Home / Back button ---- */

.officeBlock .back-btn {
    display: block;
    text-align: center;
    color: #8c98a4;
    font-family: CenturyGothicRegular, Arial, sans-serif;
    font-size: 13px;
    text-decoration: none;
    margin: 24px 0 0;
    padding: 0;
    text-transform: none;
    float: none;
    font-weight: normal;
    order: 99;
}

.officeBlock .back-btn:hover {
    color: #4D5A65;
}


/* ---- Error / Success messages ---- */

.officeBlock .errMsg,
.content.office .logIn .errMsg {
    position: static;
    width: 100%;
    padding: 12px 14px;
    margin: 16px 0 0;
    background: #fff0f0;
    color: #AC122C;
    font-family: CenturyGothicRegular, Arial, sans-serif;
    font-size: 13px;
    line-height: 1.4;
    border-radius: 6px;
    box-sizing: border-box;
    text-transform: none;
    border: 1px solid #f5c6cb;
    display: block;
}

.officeBlock .errMsg:empty,
.content.office .logIn .errMsg:empty {
    display: none;
}

.officeBlock span.accepted,
.officeBlock span.denied {
    display: none;
}


/* ---- ForgottenPassword: explanation text ---- */

.officeBlock .forgottenPasswordExpl {
    color: #8c98a4;
    font-size: 13px;
    font-family: CenturyGothicRegular, Arial, sans-serif;
    line-height: 1.5;
    max-width: 100%;
    margin-top: 16px;
    font-weight: normal;
}

.officeBlock .forErr {
    width: 100%;
}


/* ---- Register: Disclaimer checkbox ---- */

.officeBlock .checkTxt,
.officeBlock .checkTxt a {
    color: #4D5A65;
    font-size: 12px;
    font-family: CenturyGothicRegular, Arial, sans-serif;
}

.officeBlock .checkTxt a {
    text-decoration: underline;
}


/* ---- Webkit autofill ---- */

.officeBlock input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 50px #fff inset;
    -webkit-text-fill-color: #4D5A65;
}

.officeBlock input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 50px #fff inset;
    -webkit-text-fill-color: #4D5A65;
}


/* ---- SMS 2FA Popup (loaded into #popupContainer) ---- */

.sms-modern-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 42, 58, 0.85);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sms-modern-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
    padding: 40px;
    width: 420px;
    max-width: 90vw;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.sms-modern-card .ao-public-accent {
    display: none;
}

.sms-modern-card p {
    margin: 0;
    padding: 0;
    text-align: center;
}

.sms-modern-card .sms-title {
    display: block;
    font-family: CenturyGothicRegular, Arial, sans-serif;
    font-size: 20px;
    color: #4D5A65;
    text-align: center;
    margin: 0 0 12px;
    font-weight: normal;
}

.sms-modern-card .sms-text {
    display: block;
    font-family: CenturyGothicRegular, Arial, sans-serif;
    font-size: 14px;
    color: #8c98a4;
    text-align: center;
    line-height: 1.5;
    margin: 0 0 24px;
}

.sms-modern-card .sms-text a {
    color: #4D5A65;
    text-decoration: underline;
}

.sms-modern-card input.sms-verify-code-input {
    width: 100%;
    height: 44px;
    line-height: 44px;
    border: 1px solid #dce1e6;
    border-radius: 6px;
    padding: 0 14px;
    margin: 0 0 14px;
    font-size: 16px;
    font-family: CenturyGothicRegular, Arial, sans-serif;
    color: #4D5A65;
    background: #fff;
    box-sizing: border-box;
    text-align: center;
    letter-spacing: 4px;
    font-weight: bold;
    float: none;
}

.sms-modern-card input.sms-verify-code-input:focus {
    border-color: #4D5A65;
    outline: none;
}

.sms-modern-card a.sms-verify-code-btn {
    display: block;
    width: 100%;
    height: 46px;
    line-height: 46px;
    background: #4D5A65;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-family: CenturyGothicRegular, Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
    margin: 0;
    float: none;
}

.sms-modern-card a.sms-verify-code-btn:hover {
    opacity: 0.85;
}
