/* 登录页面样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

.login-page {
    min-height: 100vh;
    display: flex;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 82, 217, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255, 153, 0, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* 左侧品牌区域 */
.login-brand {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    position: relative;
    z-index: 1;
}

.login-brand-content {
    text-align: center;
    color: white;
    max-width: 500px;
}

.login-brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.login-brand-logo img {
    width: 64px;
    height: 64px;
}

.login-brand-logo span {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 50%, #fb923c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-brand-tagline {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #f1f5f9;
}

.login-brand-description {
    font-size: 1rem;
    color: #94a3b8;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.login-brand-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
}

.login-brand-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #cbd5e1;
}

.login-brand-feature i {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-size: 0.8rem;
}

.login-brand-feature.finance i {
    color: #60a5fa;
}

.login-brand-feature.network i {
    color: #34d399;
}

/* 右侧登录区域 */
.login-form-section {
    width: 480px;
    min-height: 100vh;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem;
    position: relative;
    z-index: 1;
}

.login-form-container {
    max-width: 360px;
    margin: 0 auto;
    width: 100%;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: #64748b;
    font-size: 0.95rem;
}

/* 登录方式按钮 */
.login-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.login-method-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 2px solid transparent;
}

/* Google */
.login-method-btn.google {
    background: white;
    border-color: #e2e8f0;
    color: #1e293b;
}

.login-method-btn.google:hover {
    border-color: #4285f4;
    background: #f8fafc;
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.15);
}

.login-method-btn.google i {
    color: #4285f4;
    font-size: 1.2rem;
}

.login-method-btn.google svg {
    flex-shrink: 0;
}

/* 微信 */
.login-method-btn.wechat {
    background: #07c160;
    color: white;
}

.login-method-btn.wechat:hover {
    background: #06ae56;
    box-shadow: 0 4px 12px rgba(7, 193, 96, 0.3);
    transform: translateY(-1px);
}

.login-method-btn.wechat i {
    font-size: 1.2rem;
}

/* 企业微信 */
.login-method-btn.wecom {
    background: #2c7ef8;
    color: white;
}

.login-method-btn.wecom:hover {
    background: #1a6fe8;
    box-shadow: 0 4px 12px rgba(44, 126, 248, 0.3);
    transform: translateY(-1px);
}

.login-method-btn.wecom i {
    font-size: 1.2rem;
}

/* Okta SAML */
.login-method-btn.okta {
    background: #00297a;
    color: white;
}

.login-method-btn.okta:hover {
    background: #001f5c;
    box-shadow: 0 4px 12px rgba(0, 41, 122, 0.3);
    transform: translateY(-1px);
}

.login-method-btn.okta i {
    font-size: 1.2rem;
}

/* 分隔线 */
.login-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: #94a3b8;
    font-size: 0.85rem;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.login-divider span {
    padding: 0 1rem;
}

/* 企业SSO区域 */
.enterprise-sso {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
}

.enterprise-sso-title {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 0.75rem;
}

.enterprise-sso-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #475569;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.enterprise-sso-btn:hover {
    border-color: #6366f1;
    color: #6366f1;
    background: #f5f3ff;
}

/* 底部链接 */
.login-footer {
    margin-top: 2rem;
    text-align: center;
}

.login-footer p {
    color: #64748b;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.login-footer a {
    color: #0052D9;
    text-decoration: none;
    font-weight: 500;
}

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

/* 返回首页链接 */
.back-to-home {
    position: absolute;
    top: 2rem;
    left: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    z-index: 10;
}

.back-to-home:hover {
    color: white;
}

/* 响应式 */
@media (max-width: 992px) {
    .login-page {
        flex-direction: column;
    }

    .login-brand {
        padding: 2rem;
        min-height: auto;
    }

    .login-brand-content {
        max-width: 100%;
    }

    .login-brand-features {
        display: none;
    }

    .login-form-section {
        width: 100%;
        min-height: auto;
        padding: 2rem;
    }

    .back-to-home {
        position: relative;
        top: 0;
        left: 0;
        margin-bottom: 1rem;
        color: #64748b;
    }

    .back-to-home:hover {
        color: #1e293b;
    }
}

@media (max-width: 480px) {
    .login-form-section {
        padding: 1.5rem;
    }

    .login-brand-logo span {
        font-size: 2rem;
    }

    .login-brand-tagline {
        font-size: 1.25rem;
    }
}

