/**
 * 登录/注册 · 对齐 ticketVer-M4-android 原生 APP
 * 配合 login-native.html / register-native.html 使用
 */

:root {
    --native-login-bg: url("/content/lotview/images/native/a_bg.jpg?v=20260919img1");
    --native-top-bg: url("/content/lotview/images/native/a_top_bg.png");
    --native-text: #2a2f33;
    --native-divider: #dbdbdb;
    --native-text-gray: #999;
    --native-text-black: #000;
}

.auth-panel[hidden] {
    display: none !important;
}

/* ========== 登录页 · a_bg 平铺底 + 下划线表单 ========== */
body.login-page-dark.m-logon {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    background: #2a2a2a var(--native-login-bg) repeat !important;
    color: #fff;
    font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif);
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
}

body.login-page-dark.m-logon::before,
body.login-page-dark.m-logon::after {
    display: none !important;
}

body.login-page-dark.m-logon .m-logon-hero {
    background: transparent;
    padding: calc(env(safe-area-inset-top, 0px) + 20px) 20px 0;
    min-height: auto;
}

body.login-page-dark.m-logon .m-logon-hero__inner {
    text-align: center;
}

body.login-page-dark.m-logon .m-logon-hero__logo {
    width: auto;
    height: auto;
    background: transparent;
    box-shadow: none;
    padding: 0;
    margin: 50px auto 35px;
}

body.login-page-dark.m-logon .m-logon-hero__logo img {
    display: block;
    width: calc(100% - 140px);
    max-width: 461px;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
}

body.login-page-dark.m-logon .m-logon-main {
    padding: 0 20px calc(40px + env(safe-area-inset-bottom, 0px));
    max-width: 480px;
    margin: 0 auto;
}

body.login-page-dark.m-logon .m-logon-card,
body.login-page-dark.m-logon .login-card {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

body.login-page-dark.m-logon .login-field {
    margin-bottom: 0;
    border-bottom: 0.5px solid #5c6063;
    padding-bottom: 16px;
    margin-top: 16px;
}

body.login-page-dark.m-logon .login-field:first-of-type {
    margin-top: 0;
}

body.login-page-dark.m-logon .login-field label {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    font-weight: 400;
    margin-bottom: 10px;
}

body.login-page-dark.m-logon .login-input-wrap::before {
    display: none;
}

body.login-page-dark.m-logon .login-input-wrap .form-control {
    width: 100%;
    height: auto;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #fff;
    font-size: 15px;
    line-height: 1.4;
    box-shadow: none;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

body.login-page-dark.m-logon .login-input-wrap .form-control::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

body.login-page-dark.m-logon .login-input-wrap .form-control:focus {
    background: transparent;
    box-shadow: none;
}

body.login-page-dark.m-logon .login-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

body.login-page-dark.m-logon .login-btn-primary {
    display: block;
    width: 100%;
    height: 40px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 4px;
    background: url("/content/lotview/images/native/a_bt_red.png") center / 100% 100% no-repeat;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.08em;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

body.login-page-dark.m-logon .login-btn-primary:disabled {
    opacity: 0.65;
}

body.login-page-dark.m-logon .login-btn-outline {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 40px;
    box-sizing: border-box;
    border: 1px solid #5c6063;
    border-radius: 4px;
    background: transparent;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.06em;
    -webkit-tap-highlight-color: transparent;
    margin-top: 15px;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
}

body.login-page-dark.m-logon .m-form-error {
    margin: 8px 0 0;
    font-size: 12px;
    color: #ffb4ab;
}

body.login-page-dark.m-logon .m-field-error {
    border-bottom-color: rgba(255, 120, 120, 0.6) !important;
}

/* ========== 注册页 · RegisterActivity 白底 ========== */
body.m-mobile-ui.m-reg-page {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    background: #fff;
    color: var(--native-text, #2a2f33);
    font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif);
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
}

body.m-mobile-ui.m-reg-page .m-reg-header {
    background: var(--native-top-bg) center top / cover no-repeat;
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: calc(env(safe-area-inset-top, 0px) + 8px) 14px 8px;
    color: #fff;
}

body.m-mobile-ui.m-reg-page .m-reg-header__back {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    margin-top: calc(env(safe-area-inset-top, 0px) / 2);
    font-size: 0;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    background: url("/content/lotview/images/native/topbar_left.png") center / contain no-repeat;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
}

body.m-mobile-ui.m-reg-page .m-reg-header__title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

body.m-mobile-ui.m-reg-page .m-reg-main {
    padding: 50px 20px calc(30px + env(safe-area-inset-bottom, 0px));
    max-width: 480px;
    margin: 0 auto;
}

body.m-mobile-ui.m-reg-page .m-reg-field {
    margin-bottom: 0;
    padding: 0 0 16px;
    border-bottom: 0.5px solid var(--native-divider, #dbdbdb);
}

body.m-mobile-ui.m-reg-page .m-reg-field + .m-reg-field {
    margin-top: 16px;
}

body.m-mobile-ui.m-reg-page .m-reg-field label {
    display: block;
    font-size: 12px;
    color: var(--native-text-gray, #999);
    margin-bottom: 10px;
}

body.m-mobile-ui.m-reg-page .m-reg-input {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 15px;
    color: var(--native-text-black, #000);
    padding: 0;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

body.m-mobile-ui.m-reg-page .m-reg-input::placeholder {
    color: #bbb;
}

body.m-mobile-ui.m-reg-page .m-reg-captcha {
    display: flex;
    align-items: center;
    gap: 10px;
}

body.m-mobile-ui.m-reg-page .m-reg-captcha .m-reg-input {
    flex: 1;
    min-width: 0;
}

body.m-mobile-ui.m-reg-page .m-reg-captcha .verify {
    width: 96px;
    height: 40px;
    border-radius: 4px;
    flex-shrink: 0;
    object-fit: cover;
    cursor: pointer;
    background: #f5f5f5;
}

body.m-mobile-ui.m-reg-page .m-reg-actions {
    margin-top: 30px;
}

body.m-mobile-ui.m-reg-page .m-reg-btn-primary {
    display: block;
    width: 100%;
    height: 40px;
    border: none;
    border-radius: 4px;
    background: url("/content/lotview/images/native/a_bt_red.png") center / 100% 100% no-repeat;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.08em;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

body.m-mobile-ui.m-reg-page .m-reg-btn-primary:disabled {
    opacity: 0.65;
}

/* ========== 注册页 · 顶部下载条隐藏 ========== */
body.m-mobile-ui.m-reg-page .m-reg-appdl,
body.m-mobile-ui.m-reg-page .m-reg-appdl[hidden] {
    display: none !important;
}
body.m-mobile-ui.m-reg-page .m-reg-main {
    padding-top: 28px;
}

/* ========== 注册成功 · 高端悬浮窗 ========== */
.m-reg-vip-pop {
    position: fixed;
    inset: 0;
    z-index: 10060;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    padding: 20px 16px;
    box-sizing: border-box;
}
.m-reg-vip-pop[hidden] {
    display: none !important;
}
.m-reg-vip-pop__mask {
    position: absolute;
    inset: 0;
    background: rgba(18, 22, 36, 0.48);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}
.m-reg-vip-pop__card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 340px;
    padding: 22px 18px 18px;
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfbfe 100%);
    box-shadow: 0 18px 48px rgba(28, 36, 68, 0.28);
    box-sizing: border-box;
    text-align: center;
    -webkit-animation: mRegVipIn 0.28s ease-out;
    animation: mRegVipIn 0.28s ease-out;
}
@-webkit-keyframes mRegVipIn {
    from { opacity: 0; -webkit-transform: translateY(16px) scale(0.96); transform: translateY(16px) scale(0.96); }
    to { opacity: 1; -webkit-transform: translateY(0) scale(1); transform: translateY(0) scale(1); }
}
@keyframes mRegVipIn {
    from { opacity: 0; transform: translateY(16px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.m-reg-vip-pop__close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: #f3f4f8;
    color: #8a8fa3;
    font-size: 22px;
    line-height: 32px;
    cursor: pointer;
}
.m-reg-vip-pop__head {
    padding: 4px 24px 0 8px;
    text-align: left;
}
.m-reg-vip-pop__title {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #1d2437;
}
.m-reg-vip-pop__hint {
    margin: 0 0 14px;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #8b91a5;
    line-height: 1.4;
}
.m-reg-vip-pop__chip {
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
    height: 24px;
    padding: 0 12px;
    border: 0;
    border-radius: 999px;
    background: #ffe8dc;
    color: #e56b3a;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}
.m-reg-vip-pop__brand {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    gap: 10px;
    margin: 0 0 8px;
    padding: 12px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #eef0f6;
    box-shadow: 0 4px 14px rgba(40, 48, 80, 0.04);
    text-align: left;
}
.m-reg-vip-pop__logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #6f86ff 0%, #9b7bff 100%);
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    line-height: 44px;
    text-align: center;
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
}
.m-reg-vip-pop__brand-main {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    flex: 1;
    min-width: 0;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    gap: 8px;
}
.m-reg-vip-pop__domain {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    flex: 1;
    min-width: 0;
    font-size: 18px;
    font-weight: 800;
    color: #1d2437;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.m-reg-vip-pop__note {
    margin: 0 0 12px;
    font-size: 11px;
    color: #9aa1b5;
    text-align: left;
    padding-left: 4px;
}
.m-reg-vip-pop__qr-wrap {
    margin: 0 0 12px;
    padding: 14px 12px 10px;
    border-radius: 18px;
    background: linear-gradient(180deg, #f7f8fc 0%, #ffffff 100%);
    border: 1px solid #eef0f6;
}
.m-reg-vip-pop__qr {
    display: inline-block;
    width: 168px;
    height: 168px;
    padding: 10px;
    box-sizing: border-box;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #eceff7;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(70, 84, 140, 0.08);
}
.m-reg-vip-pop__qr img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border: 0;
}
.m-reg-vip-pop__qr-tip {
    margin: 10px 0 0;
    font-size: 12px;
    color: #6e7690;
}
.m-reg-vip-pop__link-row {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    padding: 10px 12px;
    border-radius: 14px;
    background: #f6f7fb;
    text-align: left;
}
.m-reg-vip-pop__link-lab {
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
    font-size: 12px;
    color: #8b91a5;
}
.m-reg-vip-pop__link-val {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    flex: 1;
    min-width: 0;
    font-size: 11px;
    color: #3c445c;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.m-reg-vip-pop__cta {
    display: block;
    height: 46px;
    line-height: 46px;
    margin: 0 0 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, #6f86ff 0%, #9b7bff 100%);
    color: #fff !important;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-decoration: none !important;
    box-shadow: 0 10px 22px rgba(111, 134, 255, 0.35);
}
.m-reg-vip-pop__cta:active {
    opacity: 0.92;
}
.m-reg-vip-pop__enter {
    display: block;
    width: 100%;
    height: 40px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #e07a45;
    font-size: 14px;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}
body.m-reg-vip-open {
    overflow: hidden;
}

/* ========== 通用 Toast ========== */
.m-auth-toast {
    position: fixed;
    left: 50%;
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%) translateY(12px);
    max-width: 86%;
    padding: 10px 16px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.82);
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 9999;
}

.m-auth-toast.is-show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
