/* 登录页面样式 - 使用 scoped 样式避免影响其他页面 */
.login-page-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    overflow: hidden;
    background: #0a1324;
}

/* 全屏背景图 */
.login-page-wrapper .page-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/login-allpage-background.jpg') no-repeat center center;
    background-size: cover;
    z-index: 0;
}

/* 深色蒙层 #0A1324 85% */
.login-page-wrapper .page-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 19, 36, 0.85);
}

/* 登录页面容器 */
.login-page-wrapper .login-page {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100vh;
}

/* 登录框包装器 - 使用 padding-bottom 保持 1043:572 纵横比 */
.login-page-wrapper .login-wrapper {
    position: absolute;
    top: 50%;
    right: calc(100% * 185 / 1920);
    transform: translateY(-50%);
    width: calc(100% * 1043 / 1920);
    height: 0;
    padding-bottom: calc(100% * 572 / 1920);
}

/* 3D插图 - 登录框外面 */
.login-page-wrapper .illustration-outside {
    position: absolute;
    right: calc(100% * 828 / 1043);
    top: -15%;
    width: calc(100% * 862 / 1043);
    height: 0;
    padding-bottom: calc(100% * 862 / 1043);
    z-index: 1;
    background-image: url('../images/login-illustration.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 登录框 */
.login-page-wrapper .login-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    z-index: 2;
    display: flex;
}

/* 左侧信息面板 - 相对宽度 560/1043 */
.login-page-wrapper .login-info {
    width: calc(100% * 560 / 1043);
    height: 100%;
    position: relative;
    background: linear-gradient(135deg, #1a3a5c 0%, #0d2137 100%);
    flex-shrink: 0;
}

/* 左侧内容区域 */
.login-page-wrapper .login-info .content-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    top: auto;
    right: auto;
    transform: none;
}

/* 内容区域 - Grid 三行布局 */
.login-page-wrapper .login-info .content {
    position: relative;
    z-index: 2;
    flex: 1;
    display: grid;
    grid-template-rows: auto 1fr auto;
    width: 100%;
    padding: 10.33% 7.54% 10.82% 10.49%;
    gap: 12px;
}

/* 上部：标签+标题 */
.login-page-wrapper .content-top {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 中部：功能列表 */
.login-page-wrapper .content-middle {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 下部：分隔线+版权 */
.login-page-wrapper .content-bottom {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 登录框内的3D图背景 - 错位模糊效果 */
.login-page-wrapper .login-info-bg {
    position: absolute;
    left: -52%;
    top: -15%;
    width: 130%;
    height: 130%;
    opacity: 0.3;
    filter: blur(5px);
    z-index: 1;
    pointer-events: none;
}

.login-page-wrapper .login-info-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 毛玻璃遮罩 */
.login-page-wrapper .login-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 58, 92, 0.5);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 1;
}

.login-page-wrapper .tag {
    display: inline-block;
    padding: clamp(6px, 0.4vw, 10px) clamp(16px, 1vw, 24px);
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    font-size: clamp(11px, 0.7vw, 14px);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
    width: fit-content;
}

.login-page-wrapper .info-title {
    font-size: clamp(20px, 1.4vw, 28px);
    font-weight: 600;
    line-height: 1.5;
    color: #fff;
    margin-bottom: 0;
}

.login-page-wrapper .info-subtitle {
    font-size: clamp(12px, 0.75vw, 15px);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0;
}

.login-page-wrapper .info-desc {
    font-size: clamp(11px, 0.65vw, 13px);
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0;
    line-height: 1.8;
}

.login-page-wrapper .feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.login-page-wrapper .feature-list li {
    display: flex;
    align-items: center;
    gap: clamp(8px, 0.6vw, 14px);
    font-size: clamp(12px, 0.75vw, 14px);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
}

.login-page-wrapper .feature-icon {
    width: clamp(14px, 1vw, 18px);
    height: clamp(14px, 1vw, 18px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(12px, 0.8vw, 16px);
    color: #A3C4FF;
}

.login-page-wrapper .feature-icon i {
    display: flex;
    width: clamp(14px, 1vw, 18px);
    justify-content: center;
    color: inherit;
}

.login-page-wrapper .feature-icon .fa-hospital {
    font-size: 13px;
}

/* 分隔横线 */
.login-page-wrapper .divider-line {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
}

.login-page-wrapper .copyright {
    font-size: clamp(11px, 0.65vw, 13px);
    color: rgba(255, 255, 255, 0.4);
}

/* 右侧登录表单 */
.login-page-wrapper .login-form {
    position: relative;
    flex: 1;
    background: #fff;
    padding: 10.33% 2.5vw 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Logo图片 */
.login-page-wrapper .login-logo {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translate(-50%);
    width: clamp(160px, 14vw, 280px);
    margin-bottom: 0;
    z-index: 10;
}

.login-page-wrapper .login-logo img {
    width: 100%;
    height: auto;
    display: block;
}

/* 登录方式切换Tab */
/* 登录方式切换Tab */
.login-page-wrapper .login-mode-tabs {
    display: flex;
    gap: 0;
    margin-bottom: clamp(18px, 1.2vw, 24px);
    border-bottom: 2px solid #E2E8F0;
}

.login-page-wrapper .login-mode-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: clamp(8px, 0.5vw, 12px) clamp(16px, 1vw, 24px);
    color: #7393BD;
    font-size: clamp(12px, 0.75vw, 14px);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s;
}

.login-page-wrapper .login-mode-tab i {
    font-size: clamp(12px, 0.7vw, 14px);
}

.login-page-wrapper .login-mode-tab:hover {
    color: #1a3a5c;
}

.login-page-wrapper .login-mode-tab.active {
    color: #1a3a5c;
    border-bottom-color: #1a3a5c;
    font-weight: 500;
}

.login-page-wrapper .login-header {
    text-align: center;
    margin-bottom: clamp(20px, 1.5vw, 32px);
}

.login-page-wrapper .login-header h1 {
    font-size: clamp(22px, 1.5vw, 28px);
    font-weight: 700;
    letter-spacing: clamp(2px, 0.15vw, 4px);
    color: #1a3a5c;
    margin-bottom: clamp(6px, 0.4vw, 10px);
}

.login-page-wrapper .login-header .subtitle {
    font-size: clamp(12px, 0.75vw, 14px);
    color: #7393BD;
}

/* 表单样式 */
.login-page-wrapper .form-label {
    display: block;
    font-size: clamp(12px, 0.75vw, 14px);
    color: #4A5568;
    margin-bottom: clamp(6px, 0.4vw, 10px);
}

.login-page-wrapper .form-group {
    margin-bottom: clamp(14px, 1vw, 20px);
}

.login-page-wrapper .input-wrapper {
    position: relative;
}

.login-page-wrapper .input-wrapper input {
    width: 100%;
    height: clamp(38px, 2.5vw, 46px);
    padding: 0 clamp(12px, 0.8vw, 16px) 0 clamp(40px, 2.5vw, 48px);
    background: #F8FAFC;
    border: 1px solid #D9D9D9;
    border-radius: 8px;
    font-size: clamp(12px, 0.75vw, 14px);
    transition: all 0.3s;
}

.login-page-wrapper .input-wrapper input:focus {
    outline: none;
    background: #fff;
    border-color: #1a3a5c;
}

.login-page-wrapper .input-wrapper input::placeholder {
    color: #bbb;
}

.login-page-wrapper .input-icon {
    position: absolute;
    left: clamp(12px, 0.8vw, 16px);
    top: 50%;
    transform: translateY(-50%);
    width: clamp(18px, 1.1vw, 22px);
    height: clamp(18px, 1.1vw, 22px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-page-wrapper .input-icon svg {
    width: clamp(16px, 0.95vw, 18px);
    height: clamp(16px, 0.95vw, 18px);
    stroke: #999;
    stroke-width: 1.5;
    fill: none;
}

.login-page-wrapper .login-btn {
    width: 100%;
    height: clamp(40px, 2.5vw, 48px);
    background: #1a3a5c;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: clamp(13px, 0.8vw, 15px);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: clamp(12px, 0.8vw, 16px);
}

.login-page-wrapper .login-btn:hover {
    background: #254a6e;
}

/* SSO登录样式 */
.login-page-wrapper .sso-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: clamp(20px, 1.5vw, 32px) 0;
    text-align: center;
}

.login-page-wrapper .sso-icon-wrapper {
    width: clamp(60px, 4vw, 80px);
    height: clamp(60px, 4vw, 80px);
    border-radius: 50%;
    background: linear-gradient(135deg, #1a3a5c 0%, #2a5a8c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: clamp(12px, 0.8vw, 16px);
}

.login-page-wrapper .sso-icon-wrapper i {
    font-size: clamp(28px, 2vw, 36px);
    color: #fff;
}

.login-page-wrapper .sso-desc {
    font-size: clamp(12px, 0.75vw, 14px);
    color: #7393BD;
    line-height: 1.6;
}

.login-page-wrapper .sso-btn {
    background: linear-gradient(135deg, #1a3a5c 0%, #2a5a8c 100%);
}

.login-page-wrapper .sso-btn:hover {
    background: linear-gradient(135deg, #254a6e 0%, #3a6a9c 100%);
}

/* 扫码登录样式 */
.login-page-wrapper .qrcode-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: clamp(10px, 0.8vw, 16px) 0;
    text-align: center;
}

.login-page-wrapper .qrcode-wrapper {
    width: clamp(160px, 12vw, 200px);
    height: clamp(160px, 12vw, 200px);
    border: 2px dashed #D9D9D9;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: clamp(12px, 0.8vw, 16px);
    background: #F8FAFC;
}

.login-page-wrapper .qrcode-wrapper i {
    font-size: clamp(48px, 4vw, 64px);
    color: #1a3a5c;
    margin-bottom: 8px;
}

.login-page-wrapper .qrcode-wrapper span {
    font-size: clamp(11px, 0.65vw, 13px);
    color: #7393BD;
}

.login-page-wrapper .qrcode-desc {
    font-size: clamp(12px, 0.75vw, 14px);
    color: #7393BD;
}

.login-page-wrapper .login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: clamp(14px, 1vw, 20px);
}

.login-page-wrapper .forgot-link {
    font-size: clamp(11px, 0.7vw, 13px);
    color: #1a3a5c;
    cursor: pointer;
    transition: color 0.3s;
    text-decoration: none;
}

.login-page-wrapper .forgot-link:hover {
    color: #2a5a8c;
    text-decoration: underline;
}

.login-page-wrapper .login-footer {
    text-align: center;
    margin-top: clamp(16px, 1vw, 20px);
}

.login-page-wrapper .login-footer span {
    font-size: clamp(11px, 0.7vw, 13px);
    color: #7393BD;
}

.login-page-wrapper .login-footer .register-link {
    color: #1a3a5c;
    cursor: pointer;
    font-weight: 500;
    transition: color 0.3s;
    text-decoration: none;
}

.login-page-wrapper .login-footer .register-link:hover {
    color: #2a5a8c;
    text-decoration: underline;
}

/* ========== 忘记密码弹窗样式 ========== */
.fp-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 19, 36, 0.7);
    backdrop-filter: blur(4px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.fp-modal-overlay.active {
    display: flex;
}

.fp-modal-box {
    background: #fff;
    border-radius: 12px;
    width: min(480px, 90vw);
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: fpModalIn 0.3s ease;
}

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

.fp-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.fp-modal-header h3 {
    font-size: 17px;
    font-weight: 600;
    color: #1a3a5c;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.fp-modal-close {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #9ca3af;
    transition: all 0.2s;
    background: none;
    border: none;
    font-size: 18px;
}

.fp-modal-close:hover {
    background: #f3f4f6;
    color: #4b5563;
}

.fp-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

/* 步骤指示器 */
.fp-step-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 28px;
}

.fp-step-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.fp-step-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: #9ca3af;
    background: #e5e7eb;
    transition: all 0.3s;
    flex-shrink: 0;
}

.fp-step-item.active .fp-step-dot,
.fp-step-item.done .fp-step-dot {
    background: #1a3a5c;
    color: #fff;
}

.fp-step-label {
    font-size: 12px;
    color: #9ca3af;
    transition: color 0.3s;
}

.fp-step-item.active .fp-step-label,
.fp-step-item.done .fp-step-label {
    color: #1a3a5c;
    font-weight: 500;
}

.fp-step-line {
    width: 32px;
    height: 2px;
    background: #e5e7eb;
    transition: background 0.3s;
}

.fp-step-line.done {
    background: #1a3a5c;
}

/* 验证方式选择 */
.fp-method-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 8px;
}

.fp-method-card {
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.fp-method-card:hover {
    border-color: #1a3a5c;
    background: #f8fafc;
}

.fp-method-card.selected {
    border-color: #1a3a5c;
    background: #f0f7ff;
}

.fp-method-card .fp-method-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 20px;
}

.fp-method-card.selected .fp-method-icon {
    background: #1a3a5c;
    color: #fff;
}

.fp-method-card:not(.selected) .fp-method-icon {
    background: #f3f4f6;
    color: #9ca3af;
}

.fp-method-card .fp-method-title {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 4px;
}

.fp-method-card .fp-method-desc {
    font-size: 12px;
    color: #9ca3af;
}

/* 验证码输入行 */
.fp-code-row {
    display: grid;
    grid-template-columns: 1fr 100px;
    gap: 8px;
}

.fp-code-row input {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    background: #F8FAFC;
    border: 1px solid #D9D9D9;
    border-radius: 8px;
    font-size: 13px;
    transition: all 0.3s;
}

.fp-code-row input:focus {
    outline: none;
    border-color: #1a3a5c;
    background: #fff;
}

.fp-send-btn {
    height: 40px;
    border: 1px solid #1a3a5c;
    border-radius: 8px;
    background: #fff;
    color: #1a3a5c;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0 8px;
}

.fp-send-btn:hover:not(:disabled) {
    background: #1a3a5c;
    color: #fff;
}

.fp-send-btn:disabled {
    border-color: #d1d5db;
    color: #9ca3af;
    cursor: not-allowed;
    background: #f3f4f6;
}

.fp-modal-body .form-group {
    margin-bottom: 16px;
}

.fp-modal-body .form-label {
    display: block;
    font-size: 13px;
    color: #4A5568;
    margin-bottom: 6px;
}

.fp-modal-body .form-input {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    background: #F8FAFC;
    border: 1px solid #D9D9D9;
    border-radius: 8px;
    font-size: 13px;
    transition: all 0.3s;
}

.fp-modal-body .form-input:focus {
    outline: none;
    border-color: #1a3a5c;
    background: #fff;
}

.fp-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 24px;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

.fp-modal-footer .btn {
    height: 36px;
    padding: 0 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
}

.fp-modal-footer .btn-secondary {
    background: #fff;
    border: 1px solid #d1d5db;
    color: #4b5563;
}

.fp-modal-footer .btn-secondary:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.fp-modal-footer .btn-primary {
    background: #1a3a5c;
    color: #fff;
}

.fp-modal-footer .btn-primary:hover {
    background: #254a6e;
}

.fp-modal-footer .btn-primary:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.fp-hint {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
}

.fp-hint.fp-error {
    color: #ef4444;
}

.fp-hint.fp-success {
    color: #10b981;
}

/* 响应式适配 - 保持自适应比例 */
@media (max-width: 900px) {
    .login-page-wrapper .illustration-outside {
        display: none;
    }
    
    .login-page-wrapper .login-page {
        padding: 0;
    }
    
    .login-page-wrapper .login-wrapper {
        position: relative;
        top: auto;
        right: auto;
        transform: none;
        width: 100%;
        height: auto;
        max-width: 1043px;
        margin: 0 auto;
        padding: 20px;
    }
    
    .login-page-wrapper .login-card {
        width: 100%;
        max-height: none;
        height: auto;
        flex-direction: column;
    }
    
    .login-page-wrapper .login-info {
        width: 100%;
        min-height: 260px;
    }
    
    .login-page-wrapper .login-info .content-wrapper {
        position: relative;
    }
    
    .login-page-wrapper .login-info .content {
        padding: 30px 25px;
    }
    
    .login-page-wrapper .login-info-bg {
        display: none;
    }
    
    .login-page-wrapper .login-form {
        padding: 30px 25px;
    }
    
    .login-page-wrapper .divider-line {
        display: none;
    }
}

@media (max-width: 576px) {
    .login-page-wrapper .login-card {
        border-radius: 12px;
    }
    
    .login-page-wrapper .login-info .content {
        padding: 25px 20px;
        min-height: 220px;
    }
    
    .login-page-wrapper .info-title {
        font-size: 18px;
    }
    
    .login-page-wrapper .feature-list li {
        font-size: 13px;
    }
    
    .login-page-wrapper .login-form {
        padding: 25px 20px;
    }
    
    .login-page-wrapper .login-header h1 {
        font-size: 22px;
        letter-spacing: 2px;
    }
}
