@charset "utf-8";

/* ====================
   品牌主题变量（支付宝蓝色科技风）
   ==================== */
:root {
    --brand:        #1677FF;
    --brand-hover:  #4096FF;
    --brand-dark:   #0958D9;
    --brand-soft:   rgba(22, 119, 255, 0.10);
    --brand-shadow: rgba(22, 119, 255, 0.25);

    --ink:          #1F1F1F;
    --ink-2:        #434343;
    --muted:        #8C8C8C;
    --line:         #E5E7EB;
    --bg:           #F5F7FA;
    --card:         #FFFFFF;
    --card-border:  #EAECEF;

    --success:      #52C41A;
    --warning:      #FAAD14;
    --danger:       #FF4D4F;
}

/* ====================
   现代化登录页面样式
   设计风格：简约现代、扁平化、大留白
   ==================== */

/* 全局重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: #ffffff;
    color: var(--ink);
    min-height: 100vh;
    margin: 0;
}

/* ====================
   双栏布局
   ==================== */
.wrap {
    width: 100%;
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 11fr) minmax(0, 9fr);
}

/* 左侧海报区（蓝色网格 + 双角光晕） */
.split-left {
    background:
        linear-gradient(rgba(22, 119, 255, 0.05) 1px, transparent 1px) 0 0 / 32px 32px,
        linear-gradient(90deg, rgba(22, 119, 255, 0.05) 1px, transparent 1px) 0 0 / 32px 32px,
        radial-gradient(900px 600px at 0% 0%, rgba(22, 119, 255, 0.12), transparent 60%),
        radial-gradient(700px 500px at 100% 100%, rgba(0, 198, 251, 0.08), transparent 60%),
        var(--bg);
    padding: 56px 64px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    border-right: 1px solid var(--card-border);
}

.brand-block {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--ink);
    align-self: flex-start;
}

.brand-block .head-logo {
    display: block;
    max-width: 40px;
    max-height: 40px;
    margin: 0;
    border-radius: 8px;
    object-fit: contain;
}

.brand-block .brand-name {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--ink);
}

.brand-poster {
    margin: 56px 0;
    max-width: 460px;
}

.brand-headline {
    font-size: 34px;
    line-height: 1.35;
    color: var(--ink);
    font-weight: 700;
    margin: 0 0 16px;
    letter-spacing: 0.5px;
}

.brand-headline em {
    color: var(--brand);
    font-style: normal;
}

.brand-sub {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 32px;
}

.brand-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.brand-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    font-size: 14px;
    padding: 9px 0;
}

.brand-features li::before {
    content: '';
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--brand-soft);
    background-image: linear-gradient(var(--brand-soft), var(--brand-soft));
    flex-shrink: 0;
    position: relative;
}

.brand-features li i {
    color: var(--brand);
    font-size: 16px;
    margin-left: -28px;
    margin-right: 12px;
    width: 18px;
    text-align: center;
}

/* 右侧表单区 */
.split-right {
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 48px;
    min-height: 100vh;
}

/* 登录内容区（取代旧白卡） */
.login-container {
    width: 100%;
    max-width: 380px;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* 登录页主标题（大字粗体，独占视觉焦点） */
.login-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 8px;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

/* 副标题（灰字辅助说明） */
.login-subtitle {
    font-size: 14px;
    color: var(--muted);
    margin: 0 0 32px;
    line-height: 1.6;
}

/* 忘记密码（紧贴密码框下方，右对齐小灰链接） */
.forgot-link {
    text-align: right;
    margin: -6px 0 18px;
    font-size: 13px;
    line-height: 1;
}

.forgot-link a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.forgot-link a:hover {
    color: var(--brand);
}

/* 底部切换链接（"还没有账号？立即注册" 等） */
.auth-switch {
    text-align: center;
    font-size: 13px;
    color: var(--muted);
    margin: 24px 0 0;
}

.auth-switch a {
    color: var(--brand);
    font-weight: 500;
    text-decoration: none;
    margin-left: 4px;
    transition: color 0.2s ease;
}

.auth-switch a:hover {
    color: var(--brand-hover);
    text-decoration: underline;
}

/* 表单区域 */
.form1 {
    width: 100%;
}

/* 输入框容器 */
.p-input {
    position: relative;
    margin-bottom: 18px;
    width: 100%;
}

.p-input label {
    position: absolute;
    left: 0;
    top: 14px;
    color: var(--muted);
    font-size: 13px;
    transition: all 0.3s ease;
    pointer-events: none;
    font-weight: 400;
}

.p-input input[type="text"],
.p-input input[type="password"],
.p-input input[type="tel"],
.p-input input[type="email"],
.p-input input[type="number"] {
    width: 100%;
    height: 46px;
    border: none;
    border-bottom: 2px solid var(--line);
    background: transparent;
    font-size: 15px;
    color: var(--ink);
    padding: 14px 0 8px 0;
    transition: all 0.3s ease;
    outline: none;
}

.p-input input[type="text"]:focus,
.p-input input[type="password"]:focus,
.p-input input[type="tel"]:focus,
.p-input input[type="email"]:focus,
.p-input input[type="number"]:focus {
    border-bottom-color: var(--brand);
    box-shadow: 0 4px 0 -2px var(--brand-shadow);
}

.p-input input[type="text"]:focus + label,
.p-input input[type="password"]:focus + label,
.p-input input[type="tel"]:focus + label,
.p-input input[type="email"]:focus + label,
.p-input input[type="number"]:focus + label,
.p-input input[type="text"]:not(:placeholder-shown) + label,
.p-input input[type="password"]:not(:placeholder-shown) + label,
.p-input input[type="tel"]:not(:placeholder-shown) + label,
.p-input input[type="email"]:not(:placeholder-shown) + label,
.p-input input[type="number"]:not(:placeholder-shown) + label {
    top: -8px;
    font-size: 12px;
    color: var(--brand);
}

/* 验证码区域 */
.p-input.code {
    display: flex;
    align-items: center;
    gap: 12px;
}

.p-input.code input {
    flex: 1;
}

.p-input.code img {
    height: 45px;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid var(--line);
    transition: all 0.3s ease;
}

.p-input.code img:hover {
    border-color: var(--brand);
    transform: scale(1.05);
}

/* 极验验证码容器 */
#captcha {
    margin: 15px 0;
    padding: 0;
}

#text {
    text-align: center;
    color: var(--muted);
    font-size: 14px;
    padding: 20px 0;
}

.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 20px 0;
}

.loading-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand);
    animation: loadingDot 1.4s infinite ease-in-out both;
}

.loading-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.loading-dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes loadingDot {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* 错误提示 */
.tel-warn {
    position: absolute;
    right: 0;
    top: 16px;
    color: var(--danger);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.tel-warn i {
    font-size: 14px;
}

.hide {
    display: none !important;
}

/* 记住密码和忘记密码 */
.r-forget {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    font-size: 13px;
}

.r-forget a {
    color: var(--muted);
    text-decoration: none;
    transition: all 0.3s ease;
}

.r-forget a:hover {
    color: var(--brand);
}

.r-forget a.z {
    color: var(--brand);
    font-weight: 500;
}

.r-forget a.y {
    margin-left: auto;
    text-align: right;
}

/* 登录按钮（支付宝纯色 + 蓝色阴影） */
.log-btn {
    width: 100%;
    height: 45px;
    border: none;
    border-radius: 8px;
    background: var(--brand);
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
    margin-bottom: 15px;
    box-shadow: 0 2px 0 rgba(22, 119, 255, 0.10);
}

.log-btn:hover {
    background: var(--brand-hover);
    box-shadow: 0 6px 16px var(--brand-shadow);
}

.log-btn:active {
    background: var(--brand-dark);
    transform: translateY(1px);
    box-shadow: 0 2px 6px var(--brand-shadow);
}

.log-btn.off {
    opacity: 0.55;
    cursor: not-allowed;
    background: var(--brand);
    box-shadow: none;
}

/* 第三方登录分隔线（"或使用"） */
.three {
    position: relative;
    text-align: center;
    color: var(--muted);
    font-size: 12px;
    margin: 24px 0 16px;
    line-height: 1;
}

.three::before,
.three::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 36px);
    height: 1px;
    background: var(--line);
}

.three::before {
    left: 0;
}

.three::after {
    right: 0;
}

/* 第三方登录图标 */
.third-party {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin-bottom: 15px;
}

.third-party a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #F0F4FA;
    font-size: 26px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.third-party a:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.log-weixin {
    color: #09bb07 !important;
}

.log-qq {
    color: #12b7f5 !important;
}

/* 返回首页 / 已有账号 在双栏布局中由 Tab + Logo 链接替代，统一隐藏 */
.right,
.bottom-link {
    display: none;
}

/* 底部备案信息（位于左侧海报区底部） */
.footer-beian {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    color: rgba(28, 25, 23, 0.45);
    font-size: 11px;
    flex-wrap: wrap;
    padding: 0;
    margin-top: 24px;
}

.footer-beian a {
    color: rgba(28, 25, 23, 0.55);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-beian a:hover {
    color: var(--brand);
}

.nationalEmblem {
    width: 16px;
    height: 16px;
    background: url(/static/admin/images/gongan.jpg) no-repeat;
    background-size: contain;
    margin-right: 3px;
}

.beian-item {
    display: flex;
    align-items: center;
}

/* 工具类 */
.pos {
    position: relative;
}

.cl::after {
    content: '';
    display: table;
    clear: both;
}

.z {
    float: left;
}

.y {
    float: right;
}

/* 注册联系方式两列网格（手机/QQ/邮箱） */
.reg-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 18px;
}

.reg-grid > .p-input {
    margin-bottom: 18px;
}

/* 响应式：900px 以下塌缩为单列 */
@media screen and (max-width: 900px) {
    .wrap {
        grid-template-columns: 1fr;
    }

    .split-left {
        padding: 32px 28px 24px;
        min-height: auto;
        border-right: none;
        border-bottom: 1px solid var(--card-border);
    }

    .brand-poster {
        margin: 24px 0;
    }

    .brand-headline {
        font-size: 26px;
    }

    .brand-sub {
        margin-bottom: 20px;
        font-size: 14px;
    }

    .brand-features {
        display: flex;
        flex-wrap: wrap;
        gap: 4px 18px;
    }

    .brand-features li {
        padding: 4px 0;
        font-size: 13px;
    }

    .footer-beian {
        margin-top: 16px;
    }

    .split-right {
        padding: 36px 24px 56px;
        align-items: flex-start;
        min-height: auto;
    }

    .login-container {
        max-width: 100%;
    }

    .reg-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .auth-tabs {
        gap: 24px;
    }
}

@media screen and (max-width: 480px) {
    .split-left {
        padding: 24px 20px 18px;
    }

    .brand-block .brand-name {
        font-size: 16px;
    }

    .brand-headline {
        font-size: 22px;
    }

    .split-right {
        padding: 28px 20px 48px;
    }
}

/* ====================
   自定义 Layer 弹窗样式（支付宝 App 风）
   ==================== */

/* 弹窗背景遮罩 */
.layui-layer-shade {
    background-color: rgba(15, 23, 42, 0.45) !important;
    backdrop-filter: blur(4px);
}

/* 通用现代弹窗：无标题栏，圆角 16，居中 */
.modern-alert.layui-layer {
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18) !important;
    max-width: 480px !important;
    min-width: 320px !important;
    border: none !important;
}

.modern-alert.layui-layer.layui-layer-dialog {
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
}

/* 隐藏标题栏 */
.modern-alert .layui-layer-title {
    display: none !important;
}

/* 弹窗内容区 */
.modern-alert .layui-layer-content {
    padding: 36px 28px 20px !important;
    text-align: center !important;
    color: var(--ink) !important;
    font-size: 15px !important;
    line-height: 1.7 !important;
    background: #ffffff !important;
}

/* 隐藏 layer 自带 icon */
.modern-alert .layui-layer-content .layui-layer-ico {
    display: none !important;
}

/* 弹窗按钮区 */
.modern-alert .layui-layer-btn {
    padding: 8px 28px 28px !important;
    text-align: center !important;
    background: #ffffff !important;
    border-top: none !important;
}

/* 主按钮（确定 / 知道了） */
.modern-alert .layui-layer-btn a {
    height: 44px !important;
    line-height: 44px !important;
    padding: 0 36px !important;
    background: var(--brand) !important;
    border: none !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    margin: 0 !important;
    transition: background 0.2s ease !important;
}

.modern-alert .layui-layer-btn a:hover {
    background: var(--brand-hover) !important;
}

/* 次按钮（取消） */
.modern-alert .layui-layer-btn .layui-layer-btn1 {
    background: #F0F4FA !important;
    color: var(--ink-2) !important;
    margin-left: 12px !important;
}

.modern-alert .layui-layer-btn .layui-layer-btn1:hover {
    background: #E5EAF3 !important;
}

/* 关闭按钮（无标题栏，浮在右上角） */
.modern-alert .layui-layer-setwin .layui-layer-close {
    width: 28px !important;
    height: 28px !important;
    line-height: 28px !important;
    right: 12px !important;
    top: 12px !important;
    background: transparent !important;
    color: var(--muted) !important;
    border-radius: 50% !important;
    font-size: 18px !important;
    transition: all 0.25s ease !important;
}

.modern-alert .layui-layer-setwin .layui-layer-close:hover {
    background: #F0F4FA !important;
    color: var(--ink) !important;
    transform: rotate(90deg) !important;
}

/* 弹窗进入动画 */
.modern-alert.layui-anim-01 {
    animation: modernAlertShow 0.3s ease-out !important;
}

@keyframes modernAlertShow {
    from {
        opacity: 0;
        transform: scale(0.92) translate(-50%, -55%);
    }
    to {
        opacity: 1;
        transform: scale(1) translate(-50%, -50%);
    }
}

/* ====================
   轻提示 Toast（layer.msg + skin=modern-toast）
   ==================== */
.modern-toast.layui-layer-msg {
    border-radius: 12px !important;
    background: rgba(31, 31, 31, 0.92) !important;
    color: #ffffff !important;
    padding: 12px 20px !important;
    font-size: 14px !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22) !important;
    border: none !important;
    min-width: 0 !important;
}

.modern-toast.layui-layer-msg .layui-layer-content {
    color: #ffffff !important;
    padding: 0 0 0 24px !important;
    line-height: 18px !important;
}

.modern-toast.layui-layer-msg .layui-layer-content:first-child {
    padding-left: 0 !important;
}

.modern-toast .layui-layer-ico {
    background-image: none !important;
    width: 18px !important;
    height: 18px !important;
    position: absolute !important;
    left: 14px !important;
    top: 50% !important;
    margin-top: -9px !important;
    border-radius: 50% !important;
    line-height: 18px !important;
    text-align: center !important;
    font-size: 12px !important;
    font-style: normal !important;
    font-weight: 700 !important;
    color: #ffffff !important;
}

.modern-toast.toast-success .layui-layer-ico { background: var(--success) !important; }
.modern-toast.toast-success .layui-layer-ico::before { content: '\2713'; }
.modern-toast.toast-error   .layui-layer-ico { background: var(--danger) !important; }
.modern-toast.toast-error   .layui-layer-ico::before { content: '\2715'; }

/* ====================
   字段提示 Tips（layer.tips + skin=modern-tips）
   ==================== */
.modern-tips.layui-layer-tips .layui-layer-content {
    background: var(--ink) !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18) !important;
}

.modern-tips.layui-layer-tips i.layui-layer-TipsT,
.modern-tips.layui-layer-tips i.layui-layer-TipsB {
    border-right-color: transparent !important;
    border-left-color: transparent !important;
}

.modern-tips.layui-layer-tips i.layui-layer-TipsT { border-bottom-color: var(--ink) !important; }
.modern-tips.layui-layer-tips i.layui-layer-TipsB { border-top-color: var(--ink) !important; }
.modern-tips.layui-layer-tips i.layui-layer-TipsR { border-left-color: var(--ink) !important; }
.modern-tips.layui-layer-tips i.layui-layer-TipsL { border-right-color: var(--ink) !important; }

/* ====================
   注册页面额外样式
   ==================== */

/* 注册类型切换 */
.reg-type-switch {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.type-item {
    padding: 6px 18px;
    border-radius: 18px;
    font-size: 13px;
    color: var(--muted);
    background: #F0F4FA;
    cursor: pointer;
    transition: all 0.3s ease;
}

.type-item.active,
.type-item:hover {
    background: var(--brand);
    color: #ffffff;
}

/* 注册协议 */
.reg-agreement {
    margin-bottom: 18px;
}

.agreement-checkbox {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: var(--muted);
    cursor: pointer;
    user-select: none;
}

.agreement-icon {
    font-size: 18px;
    color: var(--brand);
    margin-right: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.agreement-icon:hover {
    transform: scale(1.1);
}

.agreement-checkbox span {
    line-height: 1.6;
}

.agreement-checkbox a {
    color: var(--brand);
    text-decoration: none;
    transition: all 0.3s ease;
}

.agreement-checkbox a:hover {
    color: var(--brand-dark);
    text-decoration: underline;
}

/* 底部链接 */
.bottom-link {
    text-align: center;
    font-size: 13px;
    color: var(--muted);
    margin: 15px 0;
}

.bottom-link a {
    color: var(--brand);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.bottom-link a:hover {
    color: var(--brand-dark);
}

/* ====================
   找回密码页面额外样式
   ==================== */

/* 发送验证码按钮 */
.send-code-wrap {
    position: relative;
}

.send-code-wrap input {
    padding-right: 110px !important;
}

.send-code-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: var(--brand);
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
    display: inline-block;
}

.send-code-btn:hover {
    background: var(--brand-hover);
}

.send-code-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: var(--muted);
}

.send-code-time {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 13px;
    padding-right: 10px;
    white-space: nowrap;
    display: inline-block;
}

.send-code-time.hide {
    display: none !important;
}

.send-code-btn.hide {
    display: none !important;
}

/* 调整登录容器在注册页面的样式 - 移除高度限制 */

/* 滚动条样式 */
.login-container::-webkit-scrollbar {
    width: 6px;
}

.login-container::-webkit-scrollbar-track {
    background: #F0F4FA;
    border-radius: 3px;
}

.login-container::-webkit-scrollbar-thumb {
    background: var(--brand);
    border-radius: 3px;
}

.login-container::-webkit-scrollbar-thumb:hover {
    background: var(--brand-dark);
}

