/* Styles for the redesigned ASX pages, not a global colour theme. */
.asx-auth {
    color: #173a54;
    font-family: Arial, "Microsoft YaHei", sans-serif;
    line-height: 1.5;
}
.asx-auth main {
    width: min(100% - 32px, 460px);
    margin: 0 auto;
    padding: 32px 0;
}
.asx-auth .auth-brand {
    display: block;
    width: 120px;
    margin: 0 auto 20px;
    border-radius: 8px;
}
.asx-auth h1 {
    margin: 0 0 24px;
    font-size: 22px;
    text-align: center;
    font-weight: 500;
}
.asx-auth .auth-title {
    width: fit-content;
    max-width: calc(100% - 62px);
    margin: 0 auto 24px;
    padding: 5px 10px;
    font-weight: 700;
    border-radius: 10px;
    background: #061242;
    color: #f5f7ff !important;
    -webkit-text-fill-color: #f5f7ff;
    overflow-wrap: anywhere;
}
.asx-auth .auth-card {
    padding: 30px;
    background: rgba(255, 255, 255, .94);
    border: 1px solid #dbe7f0;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(28, 63, 87, .16);
}
.asx-auth .auth-field { margin-bottom: 20px; }
.asx-auth label { display: block; margin-bottom: 7px; font-size: 14px; }
.asx-auth input:not([type="checkbox"]), .asx-auth select {
    width: 100%;
    height: 48px;
    min-width: 0;
    padding: 0 13px;
    border: 1px solid #c8d7e4;
    border-radius: 10px;
    background: #f1f5f9;
    color: #173a54;
    font: inherit;
    font-size: 16px;
}
.asx-auth input:focus, .asx-auth select:focus, .asx-auth button:focus-visible,
.asx-auth a:focus-visible {
    outline: 2px solid #168bbc;
    outline-offset: 2px;
}
.asx-auth input::placeholder { color: #7690a6; opacity: 1; }
.asx-auth .phone-field { display: flex; gap: 8px; }
/* Keep the native country picker; show only its calling code when closed. */
.asx-auth .country-code { position: relative; width: 86px; flex-shrink: 0; }
.asx-auth .country-code-value {
    display: flex;
    align-items: center;
    height: 48px;
    padding: 0 28px 0 13px;
    border: 1px solid #c8d7e4;
    border-radius: 10px;
    background: #f1f5f9;
    font-size: 16px;
}
.asx-auth .country-code::after {
    content: "";
    position: absolute;
    right: 13px;
    top: 19px;
    width: 6px;
    height: 6px;
    border-right: 1px solid #173a54;
    border-bottom: 1px solid #173a54;
    transform: rotate(45deg);
    pointer-events: none;
}
.asx-auth .country-code select {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}
.asx-auth .country-code:focus-within {
    outline: 2px solid #168bbc;
    outline-offset: 2px;
    border-radius: 10px;
}
.asx-auth .password-field { position: relative; }
.asx-auth .password-field input { padding-right: 48px; }
.asx-auth .password-toggle {
    position: absolute;
    right: 3px;
    top: 3px;
    width: 42px;
    height: 42px;
    padding: 10px;
    border: 0;
    border-radius: 8px;
    color: #7793aa;
    background: transparent;
}
.asx-auth .password-toggle svg { width: 22px; height: 22px; }
.asx-auth .auth-help { margin: -7px 0 24px; text-align: right; }
.asx-auth a { color: #009b7b; }
.asx-auth .auth-submit {
    width: 100%;
    min-height: 48px;
    padding: 10px 16px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(110deg, #00bb8a, #009e79);
    box-shadow: 0 7px 16px rgba(0, 174, 128, .2);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}
.asx-auth .auth-submit:disabled { opacity: .6; cursor: wait; }
.asx-auth .auth-divider {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid #dbe7f0;
    text-align: center;
    font-size: 14px;
}
.asx-auth .auth-back { display: block; margin-top: 22px; text-align: center; color: #315974; }
.asx-auth .auth-agreement { display: flex; gap: 9px; margin-bottom: 22px; align-items: flex-start; }
.asx-auth .auth-agreement input { flex-shrink: 0; margin-top: 4px; width: 16px; height: 16px; appearance: auto; -webkit-appearance: checkbox; }
.asx-auth .auth-agreement label { font-size: 12px; }
.asx-auth #invite { border-color: #64d7b8; background: #f2fbf8; }
.asx-auth .auth-message { min-height: 20px; margin: 0 0 12px; font-size: 13px; color: #bd2442; overflow-wrap: anywhere; }
.asx-auth .auth-message.success { color: #008363; }
.asx-auth .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

.asx-home .asx-header-brand {
    position: absolute;
    top: 0;
    left: 58px;
    transform: none;
    height: 40px;
    width: 104px;
    object-fit: contain;
}
.asx-home #iSlider-effect-wrapper { padding: 12px 0; }
.asx-home .iSlider-effect {
    height: clamp(180px, 40vw, 320px);
    min-height: 0;
    max-height: none;
}
.asx-home .iSlider-effect ul li { width: 100%; height: 100%; }
.asx-home .iSlider-effect .banlide,
.asx-home .iSlider-effect .banlide a { width: 100%; height: 100%; display: block; }
.asx-home .iSlider-effect div { background-color: #eaf4fc; }
.asx-home .iSlider-effect ul li img { width: 100%; height: 100% !important; object-fit: cover; object-position: center; }

.asx-personal-summary { padding: 26px 20px 8px; color: #173a54; }
.asx-personal-summary .asx-welcome { font-size: 22px; line-height: 1.4; margin-bottom: 6px; overflow-wrap: anywhere; }
.asx-personal-summary .asx-account-number { color: #1268a4; }
.asx-personal-summary .asx-caption { margin-bottom: 20px; font-size: 14px; color: #496d86; }
.asx-asset-card {
    padding: 24px;
    border: 1px solid #badcf1;
    border-radius: 20px;
    background: linear-gradient(120deg, #e7f6ff, #c6e8fa);
    box-shadow: 0 12px 25px rgba(35, 96, 131, .12);
}
.asx-asset-card h2, .asx-asset-card h3 { margin: 0 0 14px; color: #285570; font-size: 15px; font-weight: 500; }
.asx-asset-card .asx-balances { display: flex; flex-wrap: wrap; gap: 22px 32px; }
.asx-asset-card .asx-balances li { display: flex; flex-direction: column; gap: 5px; min-width: 90px; }
.asx-asset-card .asx-balances strong { font-size: 26px; line-height: 1.25; overflow-wrap: anywhere; }
.asx-asset-card .asx-balances span { font-size: 12px; color: #426b86; letter-spacing: 1px; }
.asx-asset-card .asx-micro { border-top: 1px solid #afd3e9; padding-top: 18px; margin-top: 22px; }
.asx-asset-card .asx-micro ul { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.nav .asx-personal-brand, img.asx-personal-brand { display: block; width: calc(100% - 32px); max-width: 960px; height: auto; margin: 28px auto 20px; border-radius: 16px; }
@media (max-width: 480px) {
    .asx-auth main { padding-top: 24px; }
    .asx-auth .auth-title { max-width: calc(100% - 46px); }
    .asx-auth .auth-card { padding: 24px 22px; }
    .asx-personal-summary { padding: 22px 16px 8px; }
    .asx-asset-card { padding: 20px; }
    .asx-asset-card .asx-balances { gap: 18px; }
    .asx-asset-card .asx-balances strong { font-size: 23px; }
}
