/* ============================================
   CMS大气登录页样式 - login-v2.css
   ============================================ */

/* 全局重置 */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* 粒子画布 */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* 页面背景 */
body.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #0c1e3a 0%, #1a3a6c 30%, #2d5aa0 60%, #1a3a6c 100%);
    overflow: hidden;
}

/* 主容器：左右布局 */
.login-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* ========== 左侧品牌区 ========== */
.login-brand {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    position: relative;
}

.login-brand::after {
    content: '';
    position: absolute;
    right: 0;
    top: 10%;
    height: 80%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.15), transparent);
}

.brand-content {
    max-width: 480px;
    color: #fff;
}

.brand-logo {
    margin-bottom: 30px;
}

.brand-logo img {
    height: 50px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.brand-title {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 4px;
    margin-bottom: 12px;
    background: linear-gradient(90deg, #fff, #a8cfff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-slogan {
    font-size: 16px;
    color: rgba(255,255,255,0.6);
    letter-spacing: 8px;
    margin-bottom: 50px;
}

/* 特性列表 */
.brand-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 50px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.feature-item i {
    font-size: 22px;
    color: #5ba3f5;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(91,163,245,0.12);
    border-radius: 10px;
    flex-shrink: 0;
}

.feature-text h5 {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    margin-bottom: 4px;
}

.feature-text p {
    font-size: 12px;
    color: rgba(255,255,255,0.45);
    line-height: 1.4;
}

/* 技术栈标签 */
.brand-tech {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.brand-tech span {
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
}

/* ========== 右侧登录卡片区 ========== */
.login-card-wrap {
    width: 480px;
    min-width: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
}

.login-card {
    width: 100%;
    max-width: 400px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 40px 36px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.1);
}

/* 登录头部 */
.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.login-header p {
    font-size: 14px;
    color: #8c8ca1;
}

/* 输入框组 */
.input-group-custom {
    position: relative;
    margin-bottom: 18px;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #b0b0c0;
    font-size: 15px;
    z-index: 2;
    transition: color 0.3s;
}

.input-field {
    width: 100%;
    height: 46px;
    padding: 0 44px;
    border: 1.5px solid #e8e8f0;
    border-radius: 10px;
    font-size: 14px;
    color: #1a1a2e;
    background: #fafafe;
    outline: none;
    transition: all 0.3s;
}

.input-field::placeholder {
    color: #b8b8c8;
}

.input-field:focus {
    border-color: #4a7efc;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(74,126,252,0.1);
}

.input-field:focus + .input-icon,
.input-field:focus ~ .input-icon {
    color: #4a7efc;
}

.input-group-custom:focus-within .input-icon {
    color: #4a7efc;
}

/* 密码眼睛 */
.input-eye {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #b0b0c0;
    cursor: pointer;
    font-size: 15px;
    z-index: 2;
    transition: color 0.3s;
}

.input-eye:hover {
    color: #4a7efc;
}

/* 验证码行 */
.captcha-row {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
}

.captcha-row .captcha-input {
    flex: 1;
    margin-bottom: 0;
}

.captcha-img {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.captcha-img img {
    height: 46px;
    border-radius: 10px;
    cursor: pointer;
    border: 1.5px solid #e8e8f0;
}

/* 登录选项行 */
.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 24px;
    margin-bottom: 22px;
    font-size: 13px;
}

/* 自定义checkbox */
.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #6c6c80;
    user-select: none;
}

.remember-me input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 1.5px solid #d0d0e0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.remember-me input[type="checkbox"]:checked + .checkmark {
    background: #4a7efc;
    border-color: #4a7efc;
}

.remember-me input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-top: -2px;
}

.forgot-pwd {
    color: #4a7efc;
    text-decoration: none;
    transition: color 0.3s;
}

.forgot-pwd:hover {
    color: #2a5edc;
}

/* 登录按钮 */
.login-btn {
    width: 100%;
    height: 46px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #4a7efc, #2a5edc, #1a4ebc);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    box-shadow: 0 4px 15px rgba(74,126,252,0.4);
    transition: all 0.3s;
    letter-spacing: 4px;
}

.login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(74,126,252,0.5);
}

.login-btn:active {
    transform: translateY(0);
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 登录底部 */
.login-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: #8c8ca1;
}

.login-footer a {
    color: #4a7efc;
    text-decoration: none;
    font-weight: 600;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* 第三方登录 */
.third-party {
    margin-top: 24px;
}

.divider {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e8e8f0;
}

.divider span {
    padding: 0 16px;
    font-size: 12px;
    color: #b0b0c0;
}

.third-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.third-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #8c8ca1;
    border: 1.5px solid #e8e8f0;
    transition: all 0.3s;
    text-decoration: none;
}

.third-icons a:hover {
    color: #4a7efc;
    border-color: #4a7efc;
    background: rgba(74,126,252,0.06);
    transform: translateY(-2px);
}

/* 版权信息 */
.login-copyright {
    position: absolute;
    bottom: 20px;
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,0.3);
    width: 100%;
}

/* ========== 响应式 ========== */
@media screen and (max-width: 1024px) {
    .login-brand {
        display: none;
    }
    .login-card-wrap {
        width: 100%;
        min-width: auto;
    }
    .login-brand::after {
        display: none;
    }
}

@media screen and (max-width: 480px) {
    .login-card-wrap {
        padding: 20px;
    }
    .login-card {
        padding: 30px 24px;
        border-radius: 12px;
    }
    .brand-title {
        font-size: 28px;
    }
}

/* ========== 兼容旧样式 ========== */
.form-control {
    border-radius: 10px !important;
    padding: 0 44px !important;
    height: 46px !important;
}

.form-control:focus {
    border-color: #4a7efc !important;
    box-shadow: 0 0 0 3px rgba(74,126,252,0.1) !important;
}

body .layer-ext-moon-msg[type="dialog"] {
    min-width: 100px !important;
}

/* ========== 密保找回密码弹窗 ========== */
.security-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.security-modal-content {
    background: #fff;
    border-radius: 16px;
    width: 460px;
    max-width: 90vw;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: secModalIn 0.3s ease;
}

@keyframes secModalIn {
    from { opacity: 0; transform: translateY(-30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.security-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
}

.security-modal-header h4 {
    margin: 0;
    font-size: 18px;
    color: #1a3a6c;
    font-weight: 600;
}

.security-modal-header h4 i {
    margin-right: 8px;
    color: #4a7efc;
}

.security-modal-close {
    font-size: 24px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.security-modal-close:hover {
    color: #333;
}

.security-modal-body {
    padding: 24px;
}

.sec-step-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #4a7efc;
    display: inline-block;
}

.sec-form-group {
    margin-bottom: 16px;
}

.sec-form-group label {
    display: block;
    font-size: 14px;
    color: #555;
    margin-bottom: 6px;
    font-weight: 500;
}

.sec-form-group .input-group-custom {
    margin-bottom: 0;
}

.sec-btn {
    width: 100%;
    margin-top: 8px;
}

.sec-btn-back {
    background: #f0f0f0 !important;
    color: #666 !important;
    border: 1px solid #d9d9d9 !important;
}

.sec-btn-back:hover {
    background: #e0e0e0 !important;
    color: #333 !important;
}

.sec-btn-group {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.sec-btn-group .sec-btn {
    flex: 1;
    margin-top: 0;
}

.sec-success-title {
    text-align: center;
    padding: 20px 0;
    border-bottom: none;
    display: block;
}

.sec-success-title i {
    display: block;
    margin-bottom: 16px;
}

.sec-success-title p {
    font-size: 18px;
    color: #333;
    margin: 0;
}

body .layer-ext-moon-msg {
    background-color: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
}

body .layer-ext-moon-msg .layui-layer-content {
    padding: 12px 25px;
    text-align: center;
}
