@charset "utf-8";

/* ==================== 
   现代化登录页面样式
   设计风格：简约现代、扁平化、大留白
   ==================== */

/* 全局重置和基础样式 */
* {
    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: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* 背景动画装饰 */
body::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -300px;
    right: -200px;
    animation: float 20s infinite ease-in-out;
}

body::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    bottom: -200px;
    left: -150px;
    animation: float 15s infinite ease-in-out reverse;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(50px, 50px) scale(1.1);
    }
}

/* 主容器 */
.wrap {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    position: relative;
    z-index: 1;
}

/* 登录卡片容器 */
.login-container {
    background: #ffffff;
    width: 400px;
    max-width: 95%;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    padding: 32px 35px;
    position: relative;
    animation: slideIn 0.6s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo区域 */
.head-logo {
    display: block;
    max-width: 150px;
    height: auto;
    margin: 0 auto 30px;
}

/* 标题 */
.login-title {
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 25px;
    margin-top: 0;
    letter-spacing: 1px;
}

/* 表单区域 */
.form1 {
    width: 100%;
}

/* 输入框容器 */
.p-input {
    position: relative;
    margin-bottom: 18px;
    width: 100%;
}

.p-input label {
    position: absolute;
    left: 0;
    top: 14px;
    color: #8492a6;
    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 #e5e9f2;
    background: transparent;
    font-size: 15px;
    color: #2c3e50;
    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: #667eea;
}

.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: #667eea;
}

/* 验证码区域 */
.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 #e5e9f2;
    transition: all 0.3s ease;
}

.p-input.code img:hover {
    border-color: #667eea;
    transform: scale(1.05);
}

/* 极验验证码容器 */
#captcha {
    margin: 15px 0;
    padding: 0;
}

#text {
    text-align: center;
    color: #8492a6;
    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: #667eea;
    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: #ff6b6b;
    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: #8492a6;
    text-decoration: none;
    transition: all 0.3s ease;
}

.r-forget a:hover {
    color: #667eea;
}

.r-forget a.z {
    color: #667eea;
    font-weight: 500;
}

.r-forget a.y {
    margin-left: auto;
    text-align: right;
}

/* 登录按钮 */
.log-btn {
    width: 100%;
    height: 45px;
    border: none;
    border-radius: 22px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    margin-bottom: 15px;
}

.log-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.log-btn:active {
    transform: translateY(0);
}

.log-btn.off {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* 第三方登录分隔线 */
.three {
    position: relative;
    text-align: center;
    color: #8492a6;
    font-size: 12px;
    margin: 15px 0 15px;
    line-height: 1;
}

.three::before,
.three::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 100px;
    height: 1px;
    background: #e5e9f2;
}

.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: #f6f9fc;
    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;
}

/* 返回首页图标也需要使用iconfont */
.right a i {
    font-size: 14px;
}

/* 返回首页 */
.right {
    text-align: center;
    margin-top: 12px;
}

.right a {
    color: #8492a6;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.right a:hover {
    color: #667eea;
}

/* 底部备案信息 */
.footer-beian {
    position: fixed;
    bottom: 15px;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    z-index: 10;
    flex-wrap: wrap;
    padding: 0 20px;
    max-width: 100%;
}

.footer-beian a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-beian a:hover {
    color: #ffffff;
}

.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;
}

/* 响应式优化 */
@media screen and (max-width: 768px) {
    .login-container {
        padding: 40px 30px;
    }
    
    .login-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .three::before,
    .three::after {
        width: 60px;
    }
}

@media screen and (max-width: 480px) {
    .login-container {
        padding: 35px 25px;
    }
    
    body::before,
    body::after {
        display: none;
    }
}

/* ==================== 
   自定义 Layer 弹窗样式
   ==================== */

/* 弹窗背景遮罩 */
.layui-layer-shade {
    background-color: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(5px);
}

/* 现代化弹窗容器 */
.modern-alert.layui-layer {
    border-radius: 16px !important;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
    max-width: 500px !important;
    min-width: 360px !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 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #ffffff !important;
    border: none !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    padding: 18px 50px 18px 20px !important;
    height: auto !important;
    line-height: 1.4 !important;
}

/* 弹窗内容区 */
.modern-alert .layui-layer-content {
    padding: 30px 25px !important;
    color: #2c3e50 !important;
    font-size: 15px !important;
    line-height: 1.8 !important;
    background: #ffffff !important;
}

/* 弹窗图标 */
.modern-alert .layui-layer-content .layui-layer-ico {
    display: none !important;
}

/* 弹窗按钮区 */
.modern-alert .layui-layer-btn {
    padding: 15px 25px 25px !important;
    text-align: center !important;
    background: #ffffff !important;
    border-top: 1px solid #f0f0f0 !important;
}

/* 弹窗按钮样式 */
.modern-alert .layui-layer-btn a {
    height: 44px !important;
    line-height: 44px !important;
    padding: 0 40px !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none !important;
    border-radius: 22px !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4) !important;
    margin: 0 !important;
}

.modern-alert .layui-layer-btn a:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5) !important;
}

/* 关闭按钮 */
.modern-alert .layui-layer-setwin .layui-layer-close {
    width: 36px !important;
    height: 36px !important;
    line-height: 36px !important;
    right: 8px !important;
    top: 8px !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border-radius: 50% !important;
    color: #ffffff !important;
    font-size: 20px !important;
    transition: all 0.3s ease !important;
}

.modern-alert .layui-layer-setwin .layui-layer-close:hover {
    background: rgba(255, 255, 255, 0.3) !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.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ====================
   注册页面额外样式
   ==================== */

/* 注册类型切换 */
.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: #8492a6;
    background: #f6f9fc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.type-item.active,
.type-item:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
}

/* 注册协议 */
.reg-agreement {
    margin-bottom: 18px;
}

.agreement-checkbox {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #8492a6;
    cursor: pointer;
    user-select: none;
}

.agreement-icon {
    font-size: 18px;
    color: #667eea;
    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: #667eea;
    text-decoration: none;
    transition: all 0.3s ease;
}

.agreement-checkbox a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* 底部链接 */
.bottom-link {
    text-align: center;
    font-size: 13px;
    color: #8492a6;
    margin: 15px 0;
}

.bottom-link a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.bottom-link a:hover {
    color: #764ba2;
}

/* ====================
   找回密码页面额外样式
   ==================== */

/* 发送验证码按钮 */
.send-code-wrap {
    position: relative;
}

.send-code-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 15px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-block;
}

.send-code-btn:hover {
    transform: translateY(-50%) translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.send-code-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: translateY(-50%);
}

.send-code-time {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #8492a6;
    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: #f6f9fc;
    border-radius: 3px;
}

.login-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 3px;
}

.login-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

