/* PUREADMIN风格登录页面样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #ffffff;
    overflow: hidden;
}

/* 主容器 */
.login-container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* 左侧插画区域 */
.illustration-section {
    flex: 1;
    position: relative;
    background: #f8fafc;
    overflow: hidden;
}

.wave-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80%;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    clip-path: polygon(0 40%, 100% 0%, 100% 100%, 0% 100%);
    z-index: 1;
}

.character {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.person {
    width: 120px;
    height: 200px;
    background: #1e3a8a;
    border-radius: 60px 60px 20px 20px;
    position: relative;
    margin-bottom: 20px;
}

.person::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: #1e3a8a;
    border-radius: 50%;
}

.person::after {
    content: '';
    position: absolute;
    top: 20px;
    left: -20px;
    width: 40px;
    height: 80px;
    background: #1e3a8a;
    border-radius: 20px;
    transform: rotate(-20deg);
}

.ui-elements {
    position: absolute;
    top: -50px;
    left: 50px;
}

.window {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.large-window {
    width: 200px;
    height: 120px;
    top: 0;
    left: 0;
}

.small-window {
    width: 80px;
    height: 60px;
}

.blue-window {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.window-header {
    height: 20px;
    background: #e5e7eb;
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
    padding: 0 8px;
}

.window-controls {
    display: flex;
    gap: 4px;
}

.control-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.control-dot.red { background: #ef4444; }
.control-dot.yellow { background: #f59e0b; }
.control-dot.green { background: #10b981; }

.window-content {
    padding: 12px;
    position: relative;
}

.content-line {
    height: 4px;
    background: #d1d5db;
    margin-bottom: 6px;
    border-radius: 2px;
}

.content-line:last-child {
    width: 60%;
}

.plus-icon {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background: #3b82f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 10px;
    font-weight: bold;
}

/* 右侧登录区域 */
.login-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    position: relative;
    background: #ffffff;
}

/* 语言切换 */
.language-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
}

.toggle-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.toggle-text {
    font-size: 14px;
    color: #6b7280;
}

.toggle-slider {
    width: 40px;
    height: 20px;
    background: #d1d5db;
    border-radius: 10px;
    position: relative;
    transition: background 0.3s ease;
}

.toggle-slider::after {
    content: '';
    position: absolute;
    top: 2px;
    right: 2px;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

/* 品牌区域 */
.brand-section {
    text-align: center;
    margin-bottom: 40px;
}

.logo {
    margin-bottom: 16px;
}

.logo-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto;
    position: relative;
}

.droplet-left {
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 60px;
    background: #1e3a8a;
    border-radius: 30px 0 0 30px;
}

.droplet-right {
    position: absolute;
    right: 0;
    top: 0;
    width: 30px;
    height: 60px;
    background: #3b82f6;
    border-radius: 0 30px 30px 0;
}

.brand-title {
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
    letter-spacing: 2px;
}

/* 登录表单 */
.login-form-container {
    width: 100%;
    max-width: 400px;
}

.login-form {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0 16px;
    height: 48px;
    transition: all 0.3s ease;
}

.input-wrapper:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.input-icon {
    color: #9ca3af;
    margin-right: 12px;
    font-size: 16px;
}

.input-wrapper input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    color: #1f2937;
}

.input-wrapper input::placeholder {
    color: #9ca3af;
}

.password-toggle {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    margin-left: 8px;
}

.password-toggle:hover {
    color: #6b7280;
}

/* 验证码 */
.captcha-wrapper {
    padding-right: 8px;
}

.captcha-image {
    width: 80px;
    height: 32px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.captcha-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 2px,
        rgba(255, 255, 255, 0.1) 2px,
        rgba(255, 255, 255, 0.1) 4px
    );
}

.captcha-text {
    font-size: 14px;
    font-weight: bold;
    color: #1f2937;
    letter-spacing: 2px;
    z-index: 1;
}

/* 表单选项 */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.remember-me {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #6b7280;
}

.remember-me input {
    display: none;
}

.checkmark {
    width: 16px;
    height: 16px;
    border: 1px solid #d1d5db;
    border-radius: 3px;
    margin-right: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.remember-me input:checked + .checkmark {
    background: #3b82f6;
    border-color: #3b82f6;
}

.remember-me input:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 10px;
    font-weight: bold;
}

.option-text {
    margin-right: 4px;
}

.info-icon {
    font-size: 12px;
    color: #9ca3af;
}

.forgot-password {
    color: #3b82f6;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* 登录按钮 */
.login-btn {
    width: 100%;
    height: 48px;
    background: #3b82f6;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.login-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.login-btn:active {
    transform: translateY(0);
}

.login-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.btn-text {
    display: block;
    transition: opacity 0.3s ease;
}

.btn-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.login-btn.loading .btn-text {
    opacity: 0;
}

.login-btn.loading .btn-loading {
    opacity: 1;
}

/* 其他登录方式 */
.alternative-login {
    text-align: center;
}

.alt-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.alt-btn {
    flex: 1;
    height: 36px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    color: #6b7280;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.alt-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

.divider {
    position: relative;
    margin: 20px 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e5e7eb;
}

.divider-text {
    background: white;
    padding: 0 16px;
    color: #9ca3af;
    font-size: 12px;
    position: relative;
    z-index: 1;
}

.social-login {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.social-btn.wechat { color: #07c160; }
.social-btn.qq { color: #12b7f5; }
.social-btn.alipay { color: #1677ff; }
.social-btn.weibo { color: #e6162d; }

/* 版权信息 */
.copyright {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #9ca3af;
    font-size: 12px;
}


/* 消息提示 */
.message-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 12px 16px;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 1001;
    min-width: 250px;
}

.message-toast.show {
    transform: translateX(0);
}

.toast-content {
    display: flex;
    align-items: center;
}

.toast-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: white;
    font-weight: bold;
}

.message-toast.success .toast-icon {
    background: #10b981;
}

.message-toast.error .toast-icon {
    background: #ef4444;
}

.message-toast.success .toast-icon::before {
    content: '✓';
}

.message-toast.error .toast-icon::before {
    content: '✕';
}

.toast-message {
    color: #1f2937;
    font-size: 14px;
    font-weight: 500;
}

/* 动画 */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
    }
    
    .illustration-section {
        height: 40vh;
    }
    
    .wave-bg {
        height: 100%;
        clip-path: polygon(0 0, 100% 0, 100% 80%, 0% 100%);
    }
    
    .character {
        transform: translate(-50%, -30%);
    }
    
    .login-section {
        height: 60vh;
        padding: 20px;
    }
    
}

@media (max-width: 480px) {
    .login-section {
        padding: 15px;
    }
    
    .brand-title {
        font-size: 24px;
    }
    
    .alt-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .social-login {
        gap: 12px;
    }
}