@charset "utf-8";
/**=================== 扁平化高端登录页面样式 ===================**/

/* 全局重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f8fafc;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

/* 背景图轮播容器 */
.background-slideshow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.background-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.background-slide.active {
    opacity: 1;
}

/* 背景遮罩层 */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 50%, rgba(248, 250, 252, 0.7) 70%, rgba(248, 250, 252, 0.9) 100%);
    z-index: -1;
}

/* 登录容器 */
.login-container {
    width: 100%;
    max-width: 1200px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 100vh;
    padding: 0 80px;
}

/* 宣传文案区域 */
.promo-section {
    flex: 1;
    max-width: 500px;
    padding-right: 60px;
    opacity: 0;
    transform: translateX(50px);
    animation: slideInFromRight 1.2s ease-out 0.5s forwards;
}

.promo-content {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.promo-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
    color: #ffffff;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(30px);
    animation: slideInFromRight 1s ease-out 0.8s forwards;
}

.promo-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
    line-height: 1.5;
    opacity: 0;
    transform: translateX(30px);
    animation: slideInFromRight 1s ease-out 1.1s forwards;
}



/* 从右到左淡入动画 */
@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 登录包装器 */
.login-wrapper {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    border: 1px solid #e5e7eb;
    width: 100%;
    max-width: 400px;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    flex-shrink: 0;
    opacity: 0;
    transform: translateX(30px);
    animation: slideInFromRight 1s ease-out 0.3s forwards;
}

/* 登录头部 */
.login-header {
    text-align: center;
    padding: 48px 32px 32px;
    background: #ffffff;
}

.logo-container {
    margin-bottom: 24px;
}

.logo-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.25);
}

.logo-icon i {
    font-size: 28px;
    color: #ffffff;
}

.system-title {
    font-size: 24px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
    letter-spacing: -0.025em;
}

.system-subtitle {
    font-size: 14px;
    color: #6b7280;
    font-weight: 400;
}

/* 表单容器 */
.login-form-container {
    padding: 0 32px 48px;
}

.login-form {
    width: 100%;
}

.form-group {
    margin-bottom: 24px;
}

/* 输入框包装器 */
.input-wrapper {
    position: relative;
}

/* 输入框图标 */
.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #9ca3af;
    z-index: 2;
    transition: color 0.2s ease;
}

.input-wrapper.focused .input-icon {
    color: #3b82f6;
}

/* 密码切换图标 */
.password-toggle {
    position: absolute !important;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    cursor: pointer;
    z-index: 2;
    transition: opacity 0.2s ease;
    user-select: none;
    line-height: 1;
    width: 20px;
    height: 20px;
    text-align: center;
}

.password-toggle:hover {
    opacity: 0.7;
}

.password-wrapper .modern-input {
    padding-right: 48px;
}

/* 现代化输入框 */
.modern-input {
    width: 100%;
    height: 48px;
    padding: 0 16px 0 48px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #111827;
    background: #ffffff;
    transition: all 0.2s ease;
    outline: none;
}

.modern-input::placeholder {
    color: #9ca3af;
}

.modern-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.modern-input:hover {
    border-color: #9ca3af;
}

/* 复选框组 */
.checkbox-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.modern-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.modern-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: #ffffff;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: all 0.2s ease;
    position: relative;
}

.modern-checkbox input[type="checkbox"]:checked {
    background: #3b82f6;
    border-color: #3b82f6;
}

.modern-checkbox input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 6px;
    height: 10px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-text {
    font-size: 14px;
    color: #6b7280;
    cursor: pointer;
}

.forget-password-link {
    color: #4CAF50;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forget-password-link:hover {
    color: #45a049;
    text-decoration: underline;
}

/* 验证码相关样式 */
.captcha-wrapper {
    position: relative;
}

.captcha-input {
    padding-right: 140px !important;
}

.captcha-image {
    position: absolute !important;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 120px;
    height: 36px;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid #e0e0e0;
    transition: border-color 0.3s ease;
}

.captcha-image:hover {
    border-color: #4CAF50;
}

/* 短信验证码相关样式 */
.sms-wrapper {
    position: relative;
}

.sms-input {
    padding-right: 140px !important;
}

.sms-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 120px;
    height: 36px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sms-btn:hover {
    background: #45a049;
}

.sms-btn.disabled {
    background: #ccc;
    cursor: not-allowed;
}

.sms-btn.disabled:hover {
    background: #ccc;
}

/* 备案信息样式 */
.login-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 15px 0;
    text-align: center;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
}

.footer-info {
    font-size: 14px;
    color: rgba(255, 255, 255, 1);
    line-height: 30px;
}

.beian-info {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.beian-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.beian-link:hover {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
}

/* 移动端备案信息样式 */
@media (max-width: 768px) {
    .login-footer {
        padding: 10px 0;
    }
    
    .beian-info {
        font-size: 11px;
    }
}

/* 注册页面专用样式 */
.agreement-link {
    color: #4CAF50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.agreement-link:hover {
    color: #45a049;
    text-decoration: underline;
}

.login-link-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.login-link {
    color: #4CAF50;
    text-decoration: none;
    font-size: 14px;
    margin-left: 5px;
    transition: color 0.3s ease;
}

.login-link:hover {
    color: #45a049;
    text-decoration: underline;
}

.text-center {
    text-align: center;
}

/* 复选框组样式优化 */
.checkbox-group .layui-form-item {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    line-height: 1.5;
}

.checkbox-group .layui-form-checkbox {
    color: rgba(255, 255, 255, 0.8);
}

.checkbox-group .layui-form-checkbox:hover {
    color: rgba(255, 255, 255, 0.9);
}

/* 手机号验证样式 */
.layui-icon-cellphone:before {
    content: "\e63b";
}

/* 邮箱图标样式 */
.layui-icon-email:before {
    content: "\e618";
}

/* 卡密图标样式 */
.layui-icon-key:before {
    content: "\e673";
}

/* 登录按钮 */
.login-btn {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.25);
}

.login-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    box-shadow: 0 6px 20px 0 rgba(59, 130, 246, 0.35);
    transform: translateY(-1px);
}

.login-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px 0 rgba(59, 130, 246, 0.25);
}

.login-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 加载状态 */
.login-btn.loading {
    position: relative;
    color: transparent;
}

.login-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .login-container {
        justify-content: center;
        padding: 20px;
    }
    
    .promo-section {
        display: none;
    }
    
    .login-wrapper {
        margin: 0;
        border-radius: 12px;
        max-width: 100%;
    }
    
    .login-header {
        padding: 32px 24px 24px;
    }
    
    .login-form-container {
        padding: 0 24px 32px;
    }
    
    .background-overlay {
        background: rgba(248, 250, 252, 0.9);
    }
}

@media (max-width: 480px) {
    body {
        padding: 16px;
    }
    
    .login-container {
        max-width: 100%;
        justify-content: center;
        padding-right: 16px;
        padding-left: 16px;
    }
    
    .login-wrapper {
        max-width: 100%;
    }
    
    .login-header {
        padding: 24px 20px 20px;
    }
    
    .form-container {
        padding: 0 20px 24px;
    }
    
    .system-title {
        font-size: 20px;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    body {
        background: #0f172a;
    }
    
    .login-wrapper {
        background: #1e293b;
        border-color: #334155;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    }
    
    .login-header {
        background: #1e293b;
    }
    
    .system-title {
        color: #f8fafc;
    }
    
    .system-subtitle {
        color: #94a3b8;
    }
    
    .modern-input {
        background: #334155;
        border-color: #475569;
        color: #f8fafc;
    }
    
    .modern-input::placeholder {
        color: #64748b;
    }
    
    .modern-input:focus {
        border-color: #3b82f6;
        background: #334155;
    }
    
    .modern-input:hover {
        border-color: #64748b;
    }
    
    .input-icon {
        color: #64748b;
    }
    
    .input-wrapper.focused .input-icon {
        color: #3b82f6;
    }
    
    .modern-checkbox input[type="checkbox"] {
        background: #334155;
        border-color: #475569;
    }
    
    .checkbox-text {
        color: #94a3b8;
    }
}

/* 隐藏layui默认样式 */
.layui-form-checkbox:not(.modern-checkbox),
.layui-form-checkbox[lay-skin="primary"]:not(.modern-checkbox),
.layui-checkbox-disbaled[lay-skin="primary"] span:not(.modern-checkbox),
.layui-form-checked[lay-skin="primary"] span:not(.modern-checkbox) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* 确保自定义复选框显示 */
.modern-checkbox,
.modern-checkbox input[type="checkbox"],
.modern-checkbox .checkbox-text {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
}

/* 动画优化 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}