/**
 * 登录/注册页：橙白风格（对齐 m/login.php）
 * 覆盖 header 全局深色底，不改 model/header.php
 */
html.auth-html,
html.auth-html body,
body.auth-page {
    background-color: #ff6c00 !important;
    background-image: linear-gradient(307deg, #FF8703 0%, #FF6262 100%) !important;
    color: #333 !important;
    min-height: 100dvh;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body.auth-page input::placeholder {
    color: #999 !important;
    opacity: 1;
}

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

.auth-page .passport {
    font-size: 17px;
    min-height: 100dvh;
    background-color: #ffffff !important;
    background-image: url(../img/ui/form-bg.png) !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
    background-position: top center;
}

.auth-page .form-l-top {
    position: relative;
    height: 160px;
    margin-bottom: 140px;
    border-radius: 0 0 60px 60px;
}

.auth-page .auth-lang-btn {
    position: absolute;
    right: 14px;
    top: 16px;
    z-index: 20;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #ff6c00;
    background: #fff;
    border: none;
    border-radius: 999px;
    padding: 6px 12px 6px 8px;
    line-height: 1;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}
.auth-page .auth-lang-btn .material-icons {
    font-size: 20px;
    color: #ff6c00;
}
.auth-page .auth-lang-btn span {
    color: #ff6c00;
}

.auth-page .form-l-top .lang_area {
    position: absolute;
    right: 12px;
    top: 16px;
    z-index: 20;
}

/* 橙顶上的语言切换：浅色描边 */
.auth-page .lang_area .langbtn {
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.45);
    color: #fff;
}
.auth-page .lang_area .xzbar {
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.auth-page .lang_area .xzbar li {
    color: #555;
}
.auth-page .lang_area .xzbar li:hover,
.auth-page .lang_area .xzbar li.dqchose {
    background: rgba(255, 108, 0, 0.12);
    color: #ff6c00;
}

.auth-page .avatar-info {
    position: absolute;
    top: 120px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: 100%;
    max-width: 320px;
}
.auth-page .avatar-info img {
    width: 80px;
    height: 80px;
    border-radius: 80px;
    object-fit: cover;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
    background: #fff;
}
.auth-page .avatar-info b {
    display: block;
    margin-top: 10px;
    font-size: 24px;
    color: #ff6c00;
    font-weight: 700;
}
.auth-page .avatar-info .auth-sub {
    margin: 6px 0 0;
    font-size: 13px;
    color: #999;
    font-weight: 500;
}

.auth-page .form-panel {
    max-width: 320px;
    margin: 0 auto;
    padding: 0 4px 40px;
}

.auth-page .form-group {
    position: relative;
    border: 1px solid #cccccc;
    border-radius: 6px;
    margin-bottom: 15px;
    background: #fff;
}
.auth-page .form-control {
    display: block;
    width: 100%;
    height: 50px;
    padding: 10px 16px;
    border: 0 !important;
    border-radius: 6px;
    background: transparent;
    color: #222;
    font-size: 16px;
    outline: none;
    box-shadow: none !important;
}
.auth-page .form-control.with-eye {
    padding-right: 48px;
}
.auth-page .form-control::placeholder {
    color: #676565 !important;
}

.auth-page .auth-eye {
    position: absolute;
    right: 2px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    background: transparent;
    color: #999;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    z-index: 2;
}
.auth-page .auth-eye .material-icons {
    font-size: 22px;
    pointer-events: none;
}
.auth-page .auth-eye:active {
    color: #ff6c00;
}

.auth-page .foot-end {
    text-align: center;
    padding: 20px 0 8px;
}

.auth-page .btn-auth {
    display: block;
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(307deg, #FF8703 0%, #E13C3C 100%);
    color: #fff !important;
    font-size: 19px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 108, 0, 0.35);
}
.auth-page .btn-auth:active {
    opacity: 0.92;
    transform: scale(0.99);
}

.auth-page .auth-switch {
    display: block;
    margin-top: 22px;
    font-size: 17px;
    color: #888;
    text-decoration: none;
}
.auth-page .auth-switch a {
    color: #ff6c00;
    font-weight: 600;
    text-decoration: none;
}

.auth-page .auth-legal {
    margin-top: 16px;
    font-size: 13px;
    color: #888;
    line-height: 1.6;
}
.auth-page .auth-legal a {
    font-size: 13px;
    color: #888;
    text-decoration: underline;
}

/* 注册页：顶栏返回 */
.auth-page .auth-back {
    position: absolute;
    left: 8px;
    top: 16px;
    z-index: 20;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}
.auth-page .auth-back .material-icons {
    font-size: 26px;
}

/* 隐私 / 条款二级页 */
.legal-page {
    background: #f5f5f5 !important;
    background-image: none !important;
    color: #333 !important;
}
.legal-page .legal-bar {
    height: 48px;
    display: flex;
    align-items: center;
    background: linear-gradient(307deg, #FF8703 0%, #FF6262 100%);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 20;
}
.legal-page .legal-bar .auth-back {
    position: static;
    color: #fff;
}
.legal-page .legal-bar h1 {
    flex: 1;
    margin: 0;
    padding-right: 40px;
    text-align: center;
    font-size: 17px;
    font-weight: 600;
}
.legal-page .legal-body {
    margin: 12px;
    padding: 16px;
    background: #fff;
    border-radius: 12px;
    font-size: 15px;
    line-height: 1.7;
    color: #333;
    word-break: break-word;
}
.legal-page .legal-body h2 {
    margin: 16px 0 8px;
    font-size: 16px;
    font-weight: 700;
    color: #222;
}
.legal-page .legal-body h2:first-child {
    margin-top: 0;
}
.legal-page .legal-body p {
    margin: 0 0 12px;
}
