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

/* 全局样式 */
body {
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    background-color: #f0f2f5;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow-x: hidden;
}

/* 背景装饰 */
.background-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.1), rgba(33, 150, 243, 0));
}

.shape-1 {
    width: 800px;
    height: 800px;
    top: -400px;
    right: -200px;
}

.shape-2 {
    width: 600px;
    height: 600px;
    bottom: -300px;
    left: -100px;
}

.shape-3 {
    width: 400px;
    height: 400px;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
}

.shape-4 {
    width: 300px;
    height: 300px;
    bottom: 20%;
    right: 15%;
}

/* 登录容器 */
.login-container {
    width: 100%;
    max-width: 1200px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
}

/* 头部区域 */
.login-header {
    text-align: center;
    margin-bottom: 30px;
    width: 100%;
}

.logo {
    margin-bottom: 15px;
}

.logo img {
    height: 80px;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.login-header h1 {
    font-size: 24px;
    color: #2c3e50;
    font-weight: 600;
    line-height: 1.5;
}

/* 登录面板 */
.login-panel {
    width: 100%;
    max-width: 450px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 40px;
    transition: all 0.3s ease;
}

.login-panel:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* 表单样式 */
.login-form {
    display: flex;
    flex-direction: column;
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #4a5568;
    font-size: 14px;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 12px;
    color: #a0aec0;
}

.form-control {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s ease;
    background-color: #f7fafc;
}

.form-control:focus {
    outline: none;
    border-color: #2196f3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.2);
    background-color: white;
}

.form-control::placeholder {
    color: #a0aec0;
}

/* 密码切换按钮 */
.toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #a0aec0;
    cursor: pointer;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: #2196f3;
}

/* 表单选项 */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.remember-me {
    display: flex;
    align-items: center;
}

.remember-me input {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    accent-color: #4caf50;
}

.remember-me label {
    font-size: 14px;
    color: #4a5568;
    cursor: pointer;
}

.forgot-password {
    font-size: 14px;
    color: #2196f3;
    text-decoration: none;
    transition: all 0.3s ease;
}

.forgot-password:hover {
    color: #388e3c;
    text-decoration: underline;
}

/* 验证码区域 */
.captcha-group {
    margin-bottom: 15px;
}

.captcha-container {
    display: flex;
    gap: 10px;
}

.captcha-input {
    flex: 1;
}

.captcha-image {
    width: 120px;
    height: 42px;
    background-color: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    font-size: 18px;
    letter-spacing: 3px;
    color: #2c3e50;
    transition: all 0.3s ease;
}

.captcha-image:hover {
    border-color: #2196f3;
    background-color: #e3f2fd;
}

/* 点击验证区域 */
.click-verify-group {
    margin-bottom: 25px;
}

.verify-container {
    width: 100%;
    height: 42px;
    background-color: #f7fafc;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.verify-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.verify-bg {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: #e3f2fd;
    z-index: 1;
}

.verify-block {
    position: absolute;
    top: 0;
    left: 0;
    width: 42px;
    height: 40px;
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: move;
    z-index: 3;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.verify-block:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.verify-block i {
    color: #2196f3;
}

.verify-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #4a5568;
    z-index: 2;
}

/* 登录按钮 */
.login-button {
    width: 100%;
    padding: 14px;
    background-color: #2196f3;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.login-button:hover {
    background-color: #1976d2;
}

.login-button:active {
    transform: translateY(1px);
}

.login-button i {
    font-size: 18px;
}

/* 错误消息 */
.error-message {
    margin-top: 5px;
    font-size: 12px;
    color: #e53e3e;
    height: 16px;
    display: flex;
    align-items: center;
}

.error-message i {
    margin-right: 4px;
    font-size: 12px;
}

/* 底部区域 */
.login-footer {
    margin-top: 30px;
    text-align: center;
    width: 100%;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.copyright {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 10px;
}

.beian-info {
    display: flex;
    gap: 15px;
}

.beian-item {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #64748b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.beian-item i {
    margin-right: 4px;
    font-size: 12px;
}

.beian-item:hover {
    color: #2196f3;
    text-decoration: underline;
}

/* 弹窗样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: white;
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.modal-header {
    padding: 20px;
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

.close-modal {
    background: none;
    border: none;
    font-size: 20px;
    color: #64748b;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #e53e3e;
}

.modal-body {
    padding: 30px;
    text-align: center;
}

/* 成功弹窗样式 */
.success-icon {
    width: 80px;
    height: 80px;
    background-color: #2196f3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.2);
}

.success-icon i {
    font-size: 40px;
    color: white;
}

.welcome-message {
    font-size: 18px;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 20px;
}

.system-info {
    background-color: #f8fafc;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: left;
}

.system-info p {
    font-size: 14px;
    color: #4a5568;
    margin-bottom: 8px;
}

.system-info p:last-child {
    margin-bottom: 0;
}

.countdown {
    font-size: 14px;
    color: #64748b;
}

.countdown span {
    font-weight: 600;
    color: #2196f3;
}

/* 帮助弹窗样式 */
.contact-info {
    background-color: #f8fafc;
    border-radius: 6px;
    padding: 15px;
    margin-top: 20px;
    text-align: left;
}

.contact-info p {
    font-size: 16px;
    color: #4a5568;
    display: flex;
    align-items: center;
}

.contact-info i {
    margin-right: 10px;
    color: #2196f3;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .login-header h1 {
        font-size: 20px;
    }

    .login-panel {
        padding: 30px;
    }

    .captcha-container {
        flex-direction: column;
    }

    .captcha-image {
        width: 100%;
        height: 42px;
    }
}

@media (max-width: 480px) {
    .login-header h1 {
        font-size: 18px;
    }

    .login-panel {
        padding: 20px;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .beian-info {
        flex-direction: column;
        gap: 5px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

.login-container {
    animation: fadeIn 0.5s ease;
}

.login-panel {
    animation: slideUp 0.5s ease;
}

/* 骨架屏效果 */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* 页面加载器样式 */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #165DFF 0%, #36CFC9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    color: white;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.loader-text {
    font-size: 1.125rem;
    font-weight: 500;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
