/* 会员登录 / 注册 / 会员中心样式 */

.auth-body {
    margin: 0;
    min-height: 100vh;
    background: #eef2f7;
    color: #1d2129;
    font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
    font-size: 14px;
}

.auth-wrap {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    padding: 8vh 16px 40px;
}

.auth-brand {
    margin-bottom: 16px;
    text-align: center;
}

.auth-brand a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #003399;
    font-size: 18px;
    text-decoration: none;
}

.auth-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 4px;
    background: #003399;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.auth-card {
    background: #fff;
    border: 1px solid #e5e6eb;
    border-radius: 6px;
    padding: 26px 28px;
    box-shadow: 0 6px 24px rgba(23, 43, 77, .06);
}

.auth-card h1 {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 600;
}

.auth-sub {
    margin: 0 0 20px;
    color: #86909c;
    font-size: 13px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-form label {
    color: #4e5969;
    font-size: 13px;
}

.auth-form input {
    width: 100%;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #d9dce3;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.auth-form input:focus {
    border-color: #003399;
    box-shadow: 0 0 0 3px rgba(0, 51, 153, .1);
}

.auth-form button {
    height: 40px;
    margin-top: 12px;
    border: 0;
    border-radius: 4px;
    background: #003399;
    color: #fff;
    font-size: 15px;
    letter-spacing: 2px;
    cursor: pointer;
}

.auth-form button:hover {
    background: #1a4bb8;
}

.auth-error {
    padding: 8px 10px;
    border-radius: 4px;
    background: #fff1f0;
    color: #cf1322;
    font-size: 13px;
}

.auth-help {
    color: #86909c;
    font-size: 12px;
}

.auth-switch {
    margin: 18px 0 0;
    color: #4e5969;
    font-size: 13px;
    text-align: center;
}

.auth-switch a {
    color: #003399;
    text-decoration: none;
}

.auth-table {
    width: 100%;
    margin-bottom: 18px;
    border-collapse: collapse;
    font-size: 13px;
}

.auth-table th,
.auth-table td {
    padding: 9px 8px;
    border-bottom: 1px solid #eef0f3;
    text-align: left;
}

.auth-table th {
    color: #86909c;
    font-weight: 500;
}

.auth-secondary {
    width: 100%;
    height: 36px;
    border: 1px solid #d9dce3;
    border-radius: 4px;
    background: #fff;
    color: #4e5969;
    font-size: 13px;
    cursor: pointer;
}

.auth-secondary:hover {
    border-color: #003399;
    color: #003399;
}

.auth-foot {
    margin: 18px 0 0;
    color: #86909c;
    font-size: 12px;
    line-height: 1.7;
    text-align: center;
}

/* 门户顶栏与 ERP 顶栏中的账号入口 */
.topbar-logout {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: rgba(255, 255, 255, .72);
    font-size: 12px;
    cursor: pointer;
}

.topbar-logout:hover {
    color: #fff;
}

.xm-account {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.xm-account a {
    color: #4e5969;
    font-size: 13px;
    text-decoration: none;
}

.xm-account a:hover {
    color: #003399;
}

.xm-account .xm-account-logout {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: #86909c;
    font-size: 13px;
    cursor: pointer;
}

@media (max-width: 900px) {
    .auth-wrap {
        padding-top: 5vh;
    }
}

/* --------------------------------------------------------------------------
   项目管理系统（xm.hdztb.com）专属登录 / 注册页：ERP 常规居中登录
   -------------------------------------------------------------------------- */
.erp-auth {
    display: flex;
    flex-direction: column;
    margin: 0;
    min-height: 100vh;
    background-color: #0b1526;
    background-image:
        radial-gradient(ellipse at 18% 10%, rgba(31, 91, 216, .40), transparent 58%),
        radial-gradient(ellipse at 86% 88%, rgba(12, 74, 168, .34), transparent 55%),
        radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 0) 38%, rgba(4, 10, 20, .6) 100%),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 36px),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 36px),
        linear-gradient(165deg, #12213a 0%, #0a1424 100%);
    color: #1d2129;
    font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
    font-size: 14px;
}

/* 斜向高光，让纯色背景有层次 */
.erp-auth::before {
    content: "";
    position: fixed;
    inset: 0;
    background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, .045) 50%, transparent 58%);
    pointer-events: none;
}

.erp-auth-stage {
    position: relative;
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 20px 24px;
}

.erp-auth-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #fff;
}

.erp-auth-mark {
    display: block;
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .38);
}

.erp-auth-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.4;
}

.erp-auth-brand-text strong {
    font-size: 21px;
    font-weight: 600;
    letter-spacing: 4px;
}

.erp-auth-brand-text em {
    color: rgba(255, 255, 255, .45);
    font-size: 9.5px;
    font-style: normal;
    letter-spacing: 2.4px;
}

.erp-auth-card {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 396px;
    margin-top: 30px;
    padding: 34px 34px 26px;
    border-radius: 10px;
    background: #fff;
    box-shadow:
        0 30px 70px rgba(3, 10, 22, .55),
        0 2px 6px rgba(3, 10, 22, .25);
    animation: erpAuthIn .45s ease both;
}

/* 顶部渐变色条 */
.erp-auth-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #1f5bd8 0%, #003399 58%, #c9a961 100%);
}

.erp-auth-card h1 {
    margin: 0 0 8px;
    font-size: 21px;
    font-weight: 600;
    letter-spacing: 1px;
}

.erp-auth-sub {
    margin: 0 0 20px;
    color: #8a93a3;
    font-size: 12.5px;
    line-height: 1.7;
}

.erp-auth-card .auth-form {
    gap: 6px;
}

.erp-auth-card .auth-form label {
    color: #6b7688;
    font-size: 12px;
    letter-spacing: .5px;
}

.erp-auth-card .auth-form input {
    height: 42px;
    padding: 0 14px 0 40px;
    border: 1px solid #dde1e8;
    border-radius: 6px;
    background-color: #f8fafc;
    background-repeat: no-repeat;
    background-position: 14px center;
    background-size: 16px 16px;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.erp-auth-card .auth-form input:focus {
    border-color: #1f5bd8;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(31, 91, 216, .12);
}

/* 输入框左侧图标（内联 SVG，无额外请求） */
.erp-auth-card .auth-form input#id_username {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a93a3' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='3.6'/%3E%3Cpath d='M4.5 20c1.4-3.4 4.2-5 7.5-5s6.1 1.6 7.5 5'/%3E%3C/svg%3E");
}

.erp-auth-card .auth-form input#id_email {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a93a3' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5.5' width='17' height='13' rx='2'/%3E%3Cpath d='M4 7l8 6 8-6'/%3E%3C/svg%3E");
}

.erp-auth-card .auth-form input#id_password,
.erp-auth-card .auth-form input#id_password1,
.erp-auth-card .auth-form input#id_password2 {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a93a3' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4.5' y='10.5' width='15' height='9.5' rx='2'/%3E%3Cpath d='M8 10.5V8a4 4 0 0 1 8 0v2.5'/%3E%3C/svg%3E");
}

.erp-auth-card .auth-form button {
    width: 100%;
    height: 44px;
    margin-top: 16px;
    border-radius: 6px;
    background: linear-gradient(90deg, #1f5bd8 0%, #003399 58%);
    box-shadow: 0 8px 18px rgba(0, 51, 153, .28);
    font-size: 15px;
    letter-spacing: 4px;
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.erp-auth-card .auth-form button:hover {
    background: linear-gradient(90deg, #2a68e8 0%, #0a44bb 58%);
    box-shadow: 0 12px 24px rgba(0, 51, 153, .34);
    transform: translateY(-1px);
}

.erp-auth-card .auth-form button:active {
    box-shadow: 0 6px 14px rgba(0, 51, 153, .26);
    transform: translateY(0);
}

.erp-auth-links {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px dashed #e8ebf0;
    font-size: 12.5px;
}

.erp-auth-links a {
    color: #0a44bb;
    text-decoration: none;
}

.erp-auth-links a:hover {
    color: #1f5bd8;
    text-decoration: underline;
}

.erp-auth-note {
    margin: 26px 0 0;
    color: rgba(255, 255, 255, .45);
    font-size: 12px;
    letter-spacing: .3px;
    text-align: center;
}

.erp-auth-footer {
    padding: 16px 20px 20px;
    color: rgba(255, 255, 255, .3);
    font-size: 12px;
    text-align: center;
}

@keyframes erpAuthIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .erp-auth-card {
        animation: none;
    }
}

@media (max-width: 480px) {
    .erp-auth-stage {
        padding: 36px 16px 20px;
    }

    .erp-auth-card {
        padding: 28px 22px 22px;
    }

    .erp-auth-brand-text strong {
        font-size: 18px;
        letter-spacing: 2px;
    }
}

/* --------------------------------------------------------------------------
   施工资料库（sg.hdztb.com）专属登录页：门户顶栏 + 居中卡片
   -------------------------------------------------------------------------- */
.slogin-page {
    margin: 0;
    min-height: 100vh;
    background: #f4f6fa;
    color: #2b3445;
    font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
    font-size: 14px;
}

.slogin-header {
    background: #003399;
    border-bottom: 3px solid #c9a961;
}

.slogin-header-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 1080px;
    height: 68px;
    margin: 0 auto;
    padding: 0 20px;
}

.slogin-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    background: #c9a961;
    color: #003399;
    font-size: 13px;
    font-weight: 700;
}

.slogin-brand {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
}

.slogin-brand strong {
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 1px;
}

.slogin-brand em {
    color: rgba(255, 255, 255, .72);
    font-size: 12px;
    font-style: normal;
}

.slogin-back {
    margin-left: auto;
    color: rgba(255, 255, 255, .82);
    font-size: 13px;
    text-decoration: none;
}

.slogin-back:hover {
    color: #fff;
}

.slogin-main {
    max-width: 400px;
    margin: 0 auto;
    padding: 7vh 20px 48px;
}

.slogin-card {
    padding: 30px 30px 26px;
    border-radius: 10px;
    border-top: 3px solid #003399;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 40, 100, .08);
}

.slogin-card h1 {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 600;
}

.slogin-sub {
    margin: 0 0 22px;
    color: #7b869c;
    font-size: 13px;
}

.slogin-card .auth-form button {
    width: 100%;
    background: #003399;
}

.slogin-foot {
    margin: 20px 0 0;
    color: #7b869c;
    font-size: 12px;
    line-height: 1.7;
    text-align: center;
}

