/* ========== 全局重置 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: #2c3e50;
    overflow: hidden;
}

/* ========== 登录容器 ========== */
.login-container {
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #e3f2fd 0%, #ffffff 50%, #bbdefb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* ========== 背景装饰圆 ========== */
.background-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(33, 150, 243, 0.08);
}

.circle-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    left: -100px;
    background: rgba(33, 150, 243, 0.15);
    animation: float 8s ease-in-out infinite;
}

.circle-2 {
    width: 300px;
    height: 300px;
    bottom: -80px;
    right: -80px;
    background: rgba(100, 181, 246, 0.12);
    animation: float 10s ease-in-out infinite reverse;
}

.circle-3 {
    width: 200px;
    height: 200px;
    top: 50%;
    right: 15%;
    background: rgba(187, 222, 251, 0.5);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-30px) translateX(20px); }
}

/* ========== 登录卡片 ========== */
.login-card {
    position: relative;
    z-index: 10;
    width: 420px;
    padding: 40px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(33, 150, 243, 0.15),
                0 0 0 1px rgba(33, 150, 243, 0.05);
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== Logo 区 ========== */
.logo-section {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e3f2fd;
}

.logo-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 12px;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.site-title {
    font-size: 24px;
    font-weight: 600;
    color: #1976d2;
    letter-spacing: 2px;
    margin-bottom: 6px;
}

.site-slogan {
    font-size: 13px;
    color: #90caf9;
    letter-spacing: 4px;
}

/* ========== 表单 ========== */
.login-form {
    width: 100%;
}

.form-title {
    font-size: 20px;
    font-weight: 600;
    color: #1565c0;
    margin-bottom: 6px;
}

.form-subtitle {
    font-size: 13px;
    color: #90a4ae;
    margin-bottom: 24px;
}

/* ========== 输入框 ========== */
.input-group {
    margin-bottom: 18px;
}

.input-group label {
    display: block;
    font-size: 13px;
    color: #455a64;
    margin-bottom: 6px;
    font-weight: 500;
}

.input-group input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    color: #2c3e50;
    background: #fafafa;
    transition: all 0.3s ease;
    outline: none;
}

.input-group input:focus {
    border-color: #2196f3;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.12);
}

.input-group input::placeholder {
    color: #b0bec5;
}

/* ========== 表单选项 ========== */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 13px;
}

.remember-me {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #607d8b;
    user-select: none;
}

.remember-me input[type="checkbox"] {
    width: 14px;
    height: 14px;
    margin-right: 6px;
    accent-color: #2196f3;
    cursor: pointer;
}

.forgot-link {
    color: #2196f3;
    text-decoration: none;
    transition: color 0.2s ease;
}

.forgot-link:hover {
    color: #1565c0;
    text-decoration: underline;
}

/* ========== 错误提示 ========== */
.error-msg {
    padding: 10px 14px;
    margin-bottom: 16px;
    background: #ffebee;
    border: 1px solid #ffcdd2;
    border-radius: 6px;
    color: #c62828;
    font-size: 13px;
}

/* ========== 登录按钮 ========== */
.btn-login {
    width: 100%;
    height: 46px;
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.btn-login:hover {
    background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
    box-shadow: 0 6px 18px rgba(33, 150, 243, 0.4);
    transform: translateY(-1px);
}

.btn-login:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

/* ========== 表单底部 ========== */
.form-footer {
    margin-top: 22px;
    text-align: center;
    font-size: 13px;
    color: #78909c;
}

.register-link {
    color: #2196f3;
    text-decoration: none;
    font-weight: 600;
    margin-left: 4px;
    transition: color 0.2s ease;
}

.register-link:hover {
    color: #1565c0;
    text-decoration: underline;
}

/* ========== 响应式 ========== */
@media (max-width: 480px) {
    .login-card {
        width: 92%;
        padding: 28px 22px;
    }

    .site-title {
        font-size: 20px;
    }
}