@charset "utf-8";

:root {
    /* 品牌主色 - 健康蓝 */
    --primary-color: #2C5282;
    --primary-gradient: linear-gradient(135deg, #00B4D8 0%, #0077B6 100%);
    --secondary-color: #4299E1;
    --accent-color: #E53E3E;
    
    /* 功能色彩 */
    --success-color: #06D6A0;
    --warning-color: #FFD166;
    --error-color: #E53E3E;
    --info-color: #4ECDC4;
    
    /* 文字色彩 */
    --text-primary: #2D3748;
    --text-secondary: #4A5568;
    --text-tertiary: #718096;
    --text-light: #FFFFFF;
    
    /* 背景色彩 */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F7FAFC;
    --bg-card: #F7FAFC;
    --border-color: #E2E8F0;
    
    /* 间距系统 */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    --spacing-3xl: 64px;
    
    /* 圆角 */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    --radius-full: 50px;
    
    /* 阴影 */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.12);
    
    /* 过渡动画 */
    --transition-fast: 150ms cubic-bezier(0.4, 0.0, 0.2, 1);
    --transition-normal: 300ms cubic-bezier(0.4, 0.0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0.0, 0.2, 1);
    
    /* 登录页面特有颜色 */
    --gradient-start: #e0f7fa; /* 清爽薄荷绿 */
    --gradient-end: #80deea;   /* 柔和青色 */
    --header-bg: rgba(255, 255, 255, 0.9);
    --footer-bg: rgba(0, 0, 0, 0.2);
    /* 玻璃态效果颜色 */
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    animation: gradient-animation 15s ease infinite;
    background-size: 200% 200%;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

@keyframes gradient-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 背景装饰元素 */
.background-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 20%);
    z-index: -1;
    pointer-events: none;
}

/* --- Header --- */
.login-header {
    background-color: var(--header-bg);
    box-shadow: var(--shadow-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.header-left { 
    display: flex; 
    align-items: center; 
    gap: var(--spacing-md); 
}

.logo { 
    width: 40px; 
    height: 40px; 
    transition: transform var(--transition-fast);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.system-title h1 { 
    font-size: 1.25rem; 
    color: var(--primary-color); 
    margin: 0; 
    font-weight: 600;
}

.system-title p { 
    font-size: 0.75rem; 
    color: var(--text-secondary); 
    margin: 2px 0 0; 
}

.back-to-home { 
    display: flex; 
    align-items: center; 
    gap: var(--spacing-xs); 
    padding: var(--spacing-sm) var(--spacing-lg); 
    background: var(--primary-gradient);
    color: var(--text-light); 
    text-decoration: none; 
    border-radius: var(--radius-md); 
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-md);
    font-weight: 600;
    font-size: 0.95rem;
}

.back-to-home:hover { 
    background: linear-gradient(135deg, #0077B6 0%, #005577 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.back-to-home i {
    font-size: 0.9rem;
}

/* --- Main Content --- */
.login-main {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-3xl);
    position: relative;
}

.login-card {
    display: flex;
    width: 950px;
    height: 620px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    /* 玻璃态效果 */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    position: relative;
    z-index: 2;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

/* 认证卡片（登录/注册通用） */
.auth-card {
    display: flex;
    width: 950px;
    height: 680px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    /* 玻璃态效果 */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    position: relative;
    z-index: 2;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.login-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(31, 38, 135, 0.45);
}

.left-panel {
    width: 55%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-md);
    background: linear-gradient(135deg, rgba(249, 250, 255, 0.8), rgba(233, 245, 255, 0.9));
    overflow: hidden;
    position: relative;
}

.left-panel::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 180, 216, 0.1) 0%, transparent 70%);
    animation: rotate 20s infinite linear;
    z-index: 0;
}

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

.illustration-img {
    width: 100%;
    max-width: 450px;
    height: auto;
    /* 增强的动画效果 */
    animation:
        medical-breathe 3s ease-in-out infinite,
        enhanced-glow 4s ease-in-out infinite,
        subtle-float 6s ease-in-out infinite;
    transform-origin: center center;
    transition: transform var(--transition-fast);
    /* 确保动画可见 */
    will-change: transform, filter, opacity;
    position: relative;
    z-index: 1;
}

/* 悬停时保持动画继续，仅轻微放大 */
.illustration-img:hover {
    transform: scale(1.05);
}

.right-panel {
    width: 45%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-2xl) var(--spacing-2xl) var(--spacing-lg);
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.9);
    position: relative;
    min-height: 500px;
}

/* 切换标签样式 */
.auth-tabs {
    display: flex;
    position: relative;
    margin-bottom: var(--spacing-xl);
    background: rgba(247, 250, 252, 0.8);
    border-radius: var(--radius-full);
    padding: 4px;
    width: 280px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    border-radius: var(--radius-full);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.tab-btn i {
    font-size: 1rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-btn.active {
    color: var(--primary-color);
}

.tab-btn.active i {
    transform: scale(1.1);
}

/* 悬停效果增强 */
.tab-btn:hover {
    color: var(--primary-color);
    background: rgba(0, 180, 216, 0.05);
}

.tab-btn:hover i {
    transform: scale(1.15);
}

/* 点击效果 */
.tab-btn:active {
    transform: scale(0.95);
}

.tab-slider {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background: var(--primary-gradient);
    border-radius: var(--radius-full);
    /* 使用 cubic-bezier 实现更自然的滑动效果 */
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 2px 8px rgba(0, 180, 216, 0.3);
    will-change: transform;
}

/* 表单容器 */
.auth-form-container {
    width: 100%;
    /* 延长过渡时间，使用更平滑的缓动曲线 */
    transition: 
        opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

.auth-form-container.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.auth-form-container:not(.active) {
    opacity: 0;
    transform: translateX(20px);
    pointer-events: none;
}

/* 淡出动画类 */
.auth-form-container.fade-out {
    transform: translateX(-20px);
}

.login-box, .register-box { 
    width: 100%; 
    padding: var(--spacing-md);
    position: relative;
    z-index: 2;
}

.register-box h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-lg);
    text-align: center;
    font-weight: 700;
}

/* 进度条样式 */
.progress-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-lg);
    padding: 0 10px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    transition: all var(--transition-fast);
}

.progress-step.active .step-number {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 10px rgba(26, 109, 204, 0.3);
}

.progress-step.completed .step-number {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
}

.step-text {
    font-size: 11px;
    color: #999;
    white-space: nowrap;
    transition: all var(--transition-fast);
}

.progress-step.active .step-text {
    color: var(--primary-color);
    font-weight: 600;
}

.progress-step.completed .step-text {
    color: #4caf50;
}

.progress-line {
    flex: 1;
    height: 2px;
    background: #e0e0e0;
    margin: 0 8px;
    position: relative;
    top: -10px;
}

.progress-line::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: var(--primary-gradient);
    transition: width var(--transition-normal);
}

.progress-step.completed + .progress-line::after {
    width: 100%;
}

/* 验证码组合框 */
.verification-code-group {
    display: flex;
    gap: 8px;
}

.verification-code-group .input-wrapper {
    flex: 1;
}

.get-code-btn {
    padding: 12px 16px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
    box-shadow: var(--shadow-md);
}

.get-code-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.get-code-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #ccc;
}

/* 密码强度指示器 */
.password-strength {
    margin-top: 8px;
    padding: 8px 12px;
    background: #f5f5f5;
    border-radius: 6px;
    font-size: 12px;
}

.strength-bar {
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    margin-bottom: 6px;
    overflow: hidden;
    position: relative;
}

.strength-bar::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: #e0e0e0;
    transition: all var(--transition-fast);
}

.strength-bar.weak::after {
    width: 33%;
    background: #f44336;
}

.strength-bar.medium::after {
    width: 66%;
    background: #ff9800;
}

.strength-bar.strong::after {
    width: 100%;
    background: #4caf50;
}

.strength-text {
    color: #666;
    font-size: 11px;
}

/* 错误提示 */
.input-error {
    color: #f44336;
    font-size: 11px;
    margin-top: 4px;
    min-height: 16px;
}

/* 协议勾选 */
.terms-checkbox {
    margin: 16px 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 2px;
    cursor: pointer;
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color);
}

.checkbox-label a {
    color: var(--primary-color);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* 返回登录链接 */
.back-to-login {
    text-align: center;
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
}

.back-to-login p {
    font-size: 13px;
    color: var(--text-secondary);
}

.back-to-login a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.back-to-login a:hover {
    text-decoration: underline;
}

/* 成功状态 */
.success-icon {
    text-align: center;
    margin: 20px 0 15px;
}

.success-icon i {
    font-size: 60px;
    color: #4caf50;
    animation: bounceIn 0.6s;
}

@keyframes bounceIn {
    0%, 20%, 40%, 60%, 80%, 100% {
        animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    }
    0% {
        opacity: 0;
        transform: scale3d(0.3, 0.3, 0.3);
    }
    20% {
        transform: scale3d(1.1, 1.1, 1.1);
    }
    40% {
        transform: scale3d(0.9, 0.9, 0.9);
    }
    60% {
        transform: scale3d(1.03, 1.03, 1.03);
    }
    80% {
        transform: scale3d(0.97, 0.97, 0.97);
    }
    100% {
        opacity: 1;
        transform: scale3d(1, 1, 1);
    }
}

.success-title {
    font-size: 20px;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 8px;
}

.success-message {
    font-size: 13px;
    color: var(--text-secondary);
    text-align: center;
}

/* 统一按钮样式 */
.auth-btn {
    width: 100%;
    padding: var(--spacing-md);
    border: none;
    border-radius: var(--radius-lg);
    background: var(--primary-gradient);
    color: white;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-lg);
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-btn:hover {
    background: linear-gradient(135deg, #0077B6 0%, #005577 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 119, 182, 0.4);
}

.auth-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 10px rgba(0, 119, 182, 0.3);
}

.login-btn.pressed,
.register-btn.pressed {
    transform: translateY(-1px);
    box-shadow: 0 2px 10px rgba(0, 119, 182, 0.3);
}

.btn-icon {
    transition: transform var(--transition-fast);
}

.auth-btn:hover .btn-icon {
    transform: translateX(5px);
}

.login-box h2 { 
    font-size: 1.75rem; 
    color: var(--primary-color); 
    margin-bottom: var(--spacing-lg); 
    text-align: center; 
    font-weight: 700;
    position: relative;
}

.login-box h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 3px;
}

.input-group { 
    margin-bottom: var(--spacing-lg); 
}

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

.input-icon {
    position: absolute;
    left: 15px;
    color: var(--text-tertiary);
    z-index: 1;
    transition: color var(--transition-fast);
}

.input-group input { 
    width: 100%; 
    padding: 16px 50px 16px 50px; 
    border: 2px solid var(--border-color); 
    border-radius: var(--radius-lg); 
    background-color: var(--bg-secondary); 
    font-size: 1rem; 
    box-sizing: border-box; 
    transition: all var(--transition-fast);
    color: var(--text-primary);
}

.input-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 180, 216, 0.2);
    outline: none;
}

.input-group input:focus + .input-icon {
    color: var(--primary-color);
}

/* 密码可见性切换按钮 */
.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
    cursor: pointer;
    transition: color var(--transition-fast);
    z-index: 10;
    font-size: 1rem;
    padding: 4px;
    pointer-events: auto;
}

.password-toggle:hover {
    color: var(--primary-color);
}

.password-toggle:active {
    color: var(--secondary-color);
}

.form-footer { 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    font-size: 0.875rem; 
    margin-bottom: var(--spacing-lg); 
}

.remember-me {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--text-secondary);
}

.remember-me input {
    margin: 0;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
    border-radius: 4px;
}

.form-footer a { 
    color: var(--primary-color); 
    text-decoration: none; 
    transition: color var(--transition-fast);
    font-weight: 500;
}

.form-footer a:hover {
    color: #005577;
    text-decoration: underline;
}

.login-btn { 
    width: 100%; 
    padding: var(--spacing-md); 
    border: none; 
    border-radius: var(--radius-lg); 
    background: var(--primary-gradient);
    color: var(--text-light); 
    font-size: 1.125rem; 
    font-weight: 600; 
    cursor: pointer; 
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-lg);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.login-btn:hover { 
    background: linear-gradient(135deg, #0077B6 0%, #005577 100%); 
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 119, 182, 0.4);
}

.login-btn:active,
.login-btn.pressed {
    transform: translateY(-1px);
    box-shadow: 0 2px 10px rgba(0, 119, 182, 0.3);
}

.register-link {
    text-align: center;
    margin-top: var(--spacing-lg);
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.register-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-fast);
    position: relative;
}

.register-link a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width var(--transition-fast);
}

.register-link a:hover {
    color: #005577;
}

.register-link a:hover::after {
    width: 100%;
}


/* --- Footer --- */
.login-footer {
    padding: var(--spacing-md);
    text-align: center;
    color: var(--text-light);
    font-size: 0.875rem;
    background-color: var(--footer-bg);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Contact Buttons --- */
.contact-buttons {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    z-index: 100;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.75rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all var(--transition-fast);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 500;
}

.contact-item:hover { 
    transform: scale(1.1) translateY(-5px);
    color: #005577;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 1);
}

.contact-item i {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
    color: var(--primary-color);
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.contact-item:hover i {
    color: #005577;
    transform: scale(1.2);
}

/* 悬浮提示样式 */
.contact-item {
    position: relative;
}

.contact-item::after {
    content: '';
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-right: 15px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    z-index: 1000;
}

/* 电话咨询悬浮提示 */
.phone-contact::after {
    content: attr(data-phone);
    background-color: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.phone-contact::before {
    content: '';
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-right: 7px;
    border: 6px solid transparent;
    border-left-color: #333;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    z-index: 1000;
}

/* 联系我们悬浮提示 */
.qr-contact::after {
    content: '';
    background-image: url('../images/qr-sample.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 120px;
    height: 120px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    background-color: white;
    border: 2px solid #e0e0e0;
}

/* 悬浮时显示提示 */
.contact-item:hover::after,
.contact-item:hover::before {
    opacity: 1;
    visibility: visible;
}

/* 小弹窗样式 */
.toast-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 999;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.toast-mask.show {
    opacity: 1;
}

.toast {
    position: fixed;
    top: 15%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background-color: #333;
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 1rem;
    opacity: 0;
    transition: all var(--transition-fast);
    z-index: 1000;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 显示动画 */
.toast.show {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
}

/* 成功弹窗样式 */
.toast.success {
    background: linear-gradient(135deg,#22c55e);
}

/* 错误弹窗样式 */
.toast.error {
    background: linear-gradient(135deg,#ef4444);
}

/* 图标样式 */
.toast-icon {
    font-size: 1.25rem;
}

/* 文本样式 */
.toast-text {
    flex: 1;
    font-weight: 500;
}

/* ========== 登录页面插图动画效果 ========== */

/* 增强的医疗呼吸效果 - 更明显的缩放和透明度变化 */
@keyframes medical-breathe {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.02);
        opacity: 0.9;
    }
}

/* 轻微浮动效果 */
@keyframes subtle-float {
    0%, 100% {
        transform: translateY(15px);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* 增强的光晕效果 - 医疗主题配色，更强对比度 */
@keyframes enhanced-glow {
    0%, 100% {
        filter: drop-shadow(0 8px 16px rgba(0, 150, 255, 0.15))
                drop-shadow(0 4px 8px rgba(0, 200, 150, 0.15));
    }
    25% {
        filter: drop-shadow(0 12px 24px rgba(0, 180, 255, 0.35))
                drop-shadow(0 6px 12px rgba(0, 220, 180, 0.25));
    }
    50% {
        filter: drop-shadow(0 16px 32px rgba(0, 123, 255, 0.4))
                drop-shadow(0 8px 16px rgba(0, 255, 200, 0.3));
    }
    75% {
        filter: drop-shadow(0 12px 24px rgba(0, 180, 255, 0.35))
                drop-shadow(0 6px 12px rgba(0, 220, 180, 0.25));
    }
}

/* 响应式优化 - 在小屏幕上减少动画强度 */
@media (max-width: 768px) {
    .illustration-img {
        animation:
            medical-breathe-mobile 4s ease-in-out infinite,
            enhanced-glow-mobile 6s ease-in-out infinite,
            subtle-float-mobile 8s ease-in-out infinite;
    }

    @keyframes medical-breathe-mobile {
        0%, 100% {
            transform: scale(1);
            opacity: 0.95;
        }
        50% {
            transform: scale(1.01);
            opacity: 1;
        }
    }

    @keyframes subtle-float-mobile {
        0%, 100% {
            transform: translateY(0px);
        }
        50% {
            transform: translateY(-4px);
        }
    }

    @keyframes enhanced-glow-mobile {
        0%, 100% {
            filter: drop-shadow(0 4px 8px rgba(0, 150, 255, 0.15));
        }
        50% {
            filter: drop-shadow(0 8px 16px rgba(0, 123, 255, 0.25));
        }
    }
    
    /* 移动端响应式调整 */
    .login-card {
        flex-direction: column;
        height: auto;
        width: 90%;
        max-width: 500px;
    }
    
    .left-panel, .right-panel {
        width: 100%;
        padding: var(--spacing-md);
    }
    
    .left-panel {
        display: none; /* 在小屏幕上隐藏插画 */
    }
    
    .login-main {
        padding: var(--spacing-md);
    }
    
    .login-box h2 {
        font-size: 1.5rem;
    }
    
    .input-group input {
        padding: 14px 14px 14px 45px;
    }
    
    .input-icon {
        left: 12px;
    }
    
    .social-icons {
        gap: var(--spacing-md);
    }
    
    .social-icon {
        width: 45px;
        height: 45px;
        font-size: 1.125rem;
    }
    
    .toast {
        min-width: 250px;
        font-size: 0.875rem;
        padding: 14px 20px;
    }
}

/* 移动端响应式调整 */
@media (max-width: 768px) {
    .auth-card,
    .login-card {
        flex-direction: column;
        height: auto;
        width: 90%;
        max-width: 500px;
    }
    
    .left-panel {
        display: none; /* 在小屏幕上隐藏插画 */
        padding: 0;
        min-height: 0;
    }
    
    .right-panel {
        width: 100%;
        padding: var(--spacing-xl) var(--spacing-lg);
        min-height: auto;
    }
    
    .auth-tabs {
        width: 240px;
    }
    
    .tab-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .step-text {
        font-size: 10px;
    }
    
    .step-number {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .progress-container {
        padding: 0 5px;
    }
    
    .verification-code-group {
        flex-direction: column;
    }
    
    .get-code-btn {
        width: 100%;
        padding: 12px;
    }
    
    .input-group input {
        padding: 14px 14px 14px 45px;
        font-size: 0.95rem;
    }
    
    .input-icon {
        left: 12px;
        font-size: 16px;
    }
    
    .login-box h2,
    .register-box h2 {
        font-size: 1.5rem;
    }
    
    .auth-btn {
        padding: 14px;
        font-size: 1rem;
    }
}

/* 小屏幕手机适配 */
@media (max-width: 480px) {
    .auth-card,
    .login-card {
        width: 95%;
        max-width: none;
    }
    
    .right-panel {
        padding: var(--spacing-lg) var(--spacing-md);
    }
    
    .auth-tabs {
        width: 200px;
    }
    
    .tab-btn span {
        display: none; /* 极小屏幕只显示图标 */
    }
    
    .tab-btn {
        padding: 12px;
    }
    
    .step-text {
        display: none; /* 隐藏步骤文字 */
    }
    
    .progress-line {
        display: none;
    }
    
    .progress-step {
        gap: 4px;
    }
}

/* 减少动画偏好设置支持 */
@media (prefers-reduced-motion: reduce) {
    .illustration-img {
        animation: none;
    }

    .illustration-img:hover {
        transform: none;
    }
    
    .login-card,
    .auth-card {
        transition: none;
    }
    
    .login-card:hover,
    .auth-card:hover {
        transform: none;
    }
    
    .logo {
        animation: none;
    }
    
    .tab-slider {
        transition: none;
    }
    
    .toast,
    .toast-mask {
        transition: none;
    }
    
    .toast.show {
        transform: translate(-50%, 0);
    }
}

/* 页脚样式 */
.login-footer {
    background: rgba(0, 0, 0, 0.2);
    padding: var(--spacing-sm) var(--spacing-xl);
    font-size: 0.75rem;
    color: var(--text-light);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.version-info {
    margin-bottom: var(--spacing-xs);
}

.version-info span {
    margin: 0 var(--spacing-sm);
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    margin: 0 var(--spacing-sm);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: #4cc9f0;
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .illustration {
        display: none;
    }
    
    .login-container {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .login-container {
        width: 100%;
    }
    
    header {
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .contact-buttons {
        display: none;
    }
    
    .login-main {
        padding: var(--spacing-sm);
    }
    
    .login-card {
        width: 95%;
        border-radius: var(--radius-lg);
    }
    
    .right-panel {
        padding: var(--spacing-md);
    }
    
    .login-box h2 {
        font-size: 1.375rem;
    }
    
    .login-btn {
        padding: var(--spacing-sm);
        font-size: 2rem;
    }
    
    .system-title h1 {
        font-size: 1.125rem;
    }
    
    .system-title p {
        font-size: 0.6875rem;
    }
    
    .back-to-home {
        padding: var(--spacing-xs) var(--spacing-md);
        font-size: 0.875rem;
    }
    
    .back-to-home i {
        font-size: 0.75rem;
    }
    
    .social-login {
        margin-top: var(--spacing-lg);
        padding-top: var(--spacing-md);
    }
    
    .social-icons {
        gap: var(--spacing-sm);
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .toast {
        min-width: 200px;
        left: 50%;
        transform: translateX(-50%) scale(0.8);
        padding: 12px 16px;
        font-size: 0.8125rem;
    }
    
    .toast.show {
        transform: translateX(-50%) scale(1);
    }
    
    .login-footer {
        padding: var(--spacing-sm);
        font-size: 0.6875rem;
    }
}