@CHARSET "UTF-8";

/* Regular 400 */
@font-face {
    font-family: 'Noto Sans SC';
    src: url('./fonts/noto-sans-sc-v40-chinese-simplified-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Medium 500 */
@font-face {
    font-family: 'Noto Sans SC';
    src: url('./fonts/noto-sans-sc-v40-chinese-simplified-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* SemiBold 600 */
@font-face {
    font-family: 'Noto Sans SC';
    src: url('./fonts/noto-sans-sc-v40-chinese-simplified-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* Bold 700 */
@font-face {
    font-family: 'Noto Sans SC';
    src: url('./fonts/noto-sans-sc-v40-chinese-simplified-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* CSS 变量定义 */
:root {
    /* 主色调 - 蓝色 */
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --primary-500: #3b82f6;
    --primary-600: #2563eb;
    --primary-700: #1d4ed8;

    /* 中性色 */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    /* 阴影 */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    /* 圆角 */
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
}

/* 页面整体布局 */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    min-height: 100vh;
    font-family: "Noto Sans SC", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #dbeafe 100%);
}

/* 登录容器 - 左右分栏 */
.login-wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* 左侧内容区域 */
.login-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 3rem 3rem 8rem;
    max-width: 650px;
}

/* 标签 */
.login-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary-600);
    margin-bottom: 1.5rem;
    width: fit-content;
}

.login-tag::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--primary-500);
    border-radius: 50%;
}

/* 标题 */
.login-left h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
    line-height: 1.2;
}

/* 描述 */
.login-desc {
    font-size: 1rem;
    color: var(--gray-500);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

/* 特性列表 */
.feature-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    font-size: 0.875rem;
    color: var(--gray-600);
    transition: all 0.2s ease;
}

.feature-item:hover {
    box-shadow: var(--shadow);
    transform: translateX(4px);
}

.feature-item i {
    color: var(--primary-500);
    font-size: 1rem;
}

/* 右侧登录卡片区域 */
.login-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* 登录卡片 */
.login-card {
    width: 100%;
    max-width: 420px;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 2.5rem;
}

/* 登录头部 */
.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

/* 登录标题 */
.login-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

/* 登录副标题 */
.login-subtitle {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin: 0;
}

/* 表单样式 */
.login-form .form-group {
    margin-bottom: 1.25rem;
}

.login-form .form-control {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    font-size: 0.9375rem;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    background-color: white;
    color: var(--gray-800);
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.login-form .form-control:hover {
    border-color: var(--gray-300);
}

.login-form .form-control:focus {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

.login-form .form-control::placeholder {
    color: var(--gray-400);
}

/* 输入框图标 */
.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 1rem;
    transition: color 0.2s ease;
    pointer-events: none;
}

.input-wrapper:focus-within .input-icon {
    color: var(--primary-500);
}

/* 验证码 */
.captcha-wrapper {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.captcha-wrapper .form-control {
    flex: 1;
}

.captcha-wrapper .captcha-img {
    height: 46px;
    border-radius: var(--radius);
    cursor: pointer;
    border: 1.5px solid var(--gray-200);
    transition: border-color 0.2s ease;
}

.captcha-wrapper .captcha-img:hover {
    border-color: var(--primary-300);
}

/* 选项区域 */
.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--gray-600);
}

.remember-me input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    accent-color: var(--primary-500);
    cursor: pointer;
}

.forgot-password {
    color: var(--primary-600);
    text-decoration: none;
    transition: color 0.2s ease;
}

.forgot-password:hover {
    color: var(--primary-700);
    text-decoration: underline;
}

/* 登录按钮 */
.btn-login {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-login:hover {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-login:active {
    transform: translateY(0);
}

/* 底部版权 */
.login-footer {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.75rem;
    color: var(--gray-400);
    line-height: 1.5;
}

/* 响应式 */
@media (max-width: 1024px) {
    .login-left {
        display: none;
    }

    .login-right {
        padding: 1.5rem;
    }

    .login-card {
        padding: 2rem;
    }
}

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

    .login-title {
        font-size: 1.25rem;
    }
}

/* 动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.feature-item {
    animation: fadeIn 0.5s ease-out;
    animation-fill-mode: both;
}

.feature-item:nth-child(1) { animation-delay: 0.1s; }
.feature-item:nth-child(2) { animation-delay: 0.2s; }
.feature-item:nth-child(3) { animation-delay: 0.3s; }
.feature-item:nth-child(4) { animation-delay: 0.4s; }
