html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    background: #ffffff;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    color: #1f2328;
}

*,
*:before,
*:after {
    box-sizing: border-box;
}

.accountSignInPage {
    min-height: 100vh;
    padding: 34px 12px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background: #ffffff;
}

.accountSignInCard {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    text-align: center;
}

.brandLogoWrap {
    margin: 8px auto 22px;
}

.brandLogo {
    max-width: 190px;
    max-height: 58px;
    width: auto;
    height: auto;
}

.accountSignInCard h1 {
    margin: 0;
    font-family: Poppins, "Segoe UI", Arial, sans-serif;
    font-size: 24px;
    line-height: 32px;
    font-weight: 600;
    letter-spacing: 0;
}

.introText {
    margin: 8px auto 22px;
    max-width: 320px;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    color: #2f343a;
    padding: 0;
}

.validationMessage {
    margin: 0 auto 10px;
    color: #c53030;
    text-align: left;
    font-size: 18px;
}

#registrationContainer {
    text-align: left;
    overflow: visible;
}

#registrationContainer p,
#registrationContainer label {
    font-size: 14px;
    line-height: 20px;
}

#registrationContainer label {
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    color: #2e3440;
    font-weight: 600;
    margin: 0 0 8px;
    display: block;
}

/* Password label row: "Password" and circled i side by side (not under) */
#registrationContainer .password-label-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

#registrationContainer .password-label-row label {
    margin-bottom: 0;
}

#registrationContainer .tooltipAnchor {
    position: relative;
    display: inline-flex;
    align-items: center;
}

#registrationContainer .tooltip-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 0;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    line-height: 1;
    user-select: none;
    background: #0265DC;
    color: #fff;
    flex-shrink: 0;
}

#registrationContainer .tooltip-panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 1000;
    overflow: visible;
    display: none;
    min-width: 250px;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(0,0,0,.1);
    font-size: 12px;
    color: #333;
}

#registrationContainer .tooltip-panel[aria-hidden="false"] {
    display: block;
}


#registrationContainer input[type="text"],
#registrationContainer input[type="email"],
#registrationContainer input[type="password"] {
    width: 100%;
    border: 1px solid #c8cfda;
    border-radius: 8px;
    background: #f4f5f8;
    height: 44px;
    margin: 0 0 12px;
    padding: 10px 14px;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
    color: #1f2328;
    box-shadow: none;
    outline: none;
}

#registrationContainer input::placeholder {
    color: #9099ab;
}

.passwordField {
    position: relative;
    margin: 0 0 12px;
}

.passwordField input {
    margin: 0 !important;
    padding-right: 40px !important;
}

/* Single eye only: hide browser native password reveal */
#registrationContainer input[type="password"]::-ms-reveal,
#registrationContainer input[type="password"]::-ms-clear {
    display: none !important;
}

.passwordToggle {
    position: absolute;
    top: 50%;
    right: 12px;
    width: 18px;
    height: 18px;
    border: 0;
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px 18px;
    transform: translateY(-50%);
    cursor: pointer;
    padding: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23555B66' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-6 10-6 10 6 10 6-3.5 6-10 6-10-6-10-6Z'/%3E%3Ccircle cx='12' cy='12' r='2.5'/%3E%3Cpath d='M4 4l16 16'/%3E%3C/svg%3E");
}

.passwordToggle.is-visible {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23555B66' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-6 10-6 10 6 10 6-3.5 6-10 6-10-6-10-6Z'/%3E%3Ccircle cx='12' cy='12' r='2.5'/%3E%3C/svg%3E");
}

.fieldHintRow {
    display: flex;
    align-items: center;
    gap: 3px;
    margin: -4px 0 16px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.fieldHint {
    display: block;
    margin: 0;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-size: 10px;
    color: #667188;
    line-height: 14px;
    font-weight: 400;
    letter-spacing: -0.1px;
    white-space: nowrap;
}

.infoHintButton {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 1px solid #667188;
    border-radius: 50%;
    background: transparent;
    color: #667188;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-size: 9px;
    line-height: 10px;
    font-weight: 600;
    text-align: center;
    cursor: help;
    position: relative;
    flex: 0 0 auto;
    margin-top: 0;
}

.hintTooltip {
    position: absolute;
    left: 20px;
    top: -8px;
    min-width: 220px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #1f2328;
    color: #fff;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-size: 11px;
    line-height: 16px;
    text-align: left;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 5;
}

.infoHintButton:hover .hintTooltip,
.infoHintButton:focus .hintTooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.registerButton {
    width: 100%;
    border: 0;
    border-radius: 8px;
    height: 40px;
    color: #fff;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-size: 14px !important;
    line-height: 20px;
    font-weight: 600;
    text-transform: none;
    cursor: pointer;
    margin-top: 10px;
    box-shadow: none;
    background-image: none;
}

.registerButton:hover {
    opacity: 0.92;
}

.registerForm {
    margin: 0;
}

.registerForm .validationMessage {
    margin: 4px 0 6px;
    min-height: 0;
}

.registerForm .validationMessage p {
    font-size: 13px;
    line-height: 1.35;
    margin: 0 0 4px;
}

.alreadyHaveAccount {
    margin: 14px 0 0;
    text-align: center;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
    white-space: nowrap;
}

.alreadyHaveAccount .alreadyLink {
    margin-left: 6px;
    text-decoration: none;
    font-weight: 400;
}

.accountSignInFooter {
    width: 100%;
    max-width: 1320px;
    margin-top: auto;
    padding: 34px 8px 0;
}

.footerTagline {
    margin: 0 0 2px;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0;
    color: #232933;
    text-align: center;
}

.footerMeta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2px 0;
}

.footerItem,
.footerItem:link,
.footerItem:visited {
    font-size: 12px;
    line-height: 1.6;
    color: #232933;
    display: inline-block;
    position: relative;
    padding: 0 10px 0 0;
    margin-right: 10px;
    overflow-wrap: anywhere;
}

.footerItem:after {
    content: "|";
    position: absolute;
    right: -2px;
    top: 0;
    color: #8b93a3;
}

.footerItem:last-child {
    margin-right: 0;
    padding-right: 0;
}

.footerItem:last-child:after {
    content: "";
}

.accountSignInFooter a.footerItem {
    text-decoration: none;
}

body.brand-sb .brandLogo {
    max-width: 230px;
    max-height: 62px;
}

body.brand-sb .registerButton {
    background: #0265DC;
}

body.brand-sb .alreadyHaveAccount .alreadyLink,
body.brand-sb .accountSignInFooter a {
    color: #0265DC;
}

body.brand-tc .brandLogo {
    max-width: 84px;
    max-height: 70px;
}

body.brand-tc .registerButton {
    background: #0098E0;
}

body.brand-tc .alreadyHaveAccount .alreadyLink,
body.brand-tc .accountSignInFooter a {
    color: #0098E0;
}

body.brand-pe .brandLogo {
    max-width: 86px;
    max-height: 74px;
}

body.brand-pe .registerButton {
    background: #7F559A;
}

body.brand-pe .alreadyHaveAccount .alreadyLink,
body.brand-pe .accountSignInFooter a {
    color: #7F559A;
}

@media (max-width: 640px) {
    .accountSignInPage {
        padding: 26px 12px 16px;
    }

    .alreadyHaveAccount {
        margin-top: 14px;
        font-size: 16px;
    }

    .footerMeta {
        justify-content: flex-start;
    }

    .footerItem,
    .footerItem:link,
    .footerItem:visited {
        margin-right: 0;
        padding-right: 0;
    }

    .footerItem:after {
        content: "";
    }

    .accountSignInFooter {
        padding-top: 24px;
        text-align: left;
    }

    .footerTagline {
        text-align: left;
    }
}

@media (max-width: 420px) {
    .accountSignInPage {
        padding: 22px 12px 16px;
    }

    .alreadyHaveAccount {
        white-space: normal;
    }

    .fieldHintRow,
    .fieldHint {
        white-space: normal;
    }

    #registrationContainer p,
    #registrationContainer label {
        font-size: 14px;
    }

    .hintTooltip {
        left: 0;
        top: 20px;
        min-width: 180px;
    }
}