/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100%;
}

/* 登录背景 */
.login-body {
    background: linear-gradient(135deg, #f0f4ff 0%, #e6e9ff 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

/* 登录卡片 */
.login-card {
    width: 100%;
    max-width: 420px;
    background: white;
    padding: 40px 32px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
    animation: fadeIn 0.4s ease-out;
}

/* Logo 图标 */
.logo-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #4f6cf9 0%, #7a5ef9 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.logo-icon i {
    font-size: 32px;
    color: white;
}

/* 标题与描述 */
.login-title {
    font-size: 24px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 8px;
}

.login-desc {
    font-size: 15px;
    color: #718096;
    margin-bottom: 32px;
    line-height: 1.5;
}

/* 输入框容器 */
.input-group {
    margin-bottom: 24px;
}

.input-wrapper {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 14px 50px 14px 16px;
    font-size: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    color: #2d3748;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-input::placeholder {
    color: #a0aec0;
}

/* 密码切换按钮 */
.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #a0aec0;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
}

.toggle-password:hover {
    color: #667eea;
}

/* 登录按钮 */
.login-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #4f6cf9 0%, #7a5ef9 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(79, 108, 249, 0.25);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(79, 108, 249, 0.35);
}

.login-btn:active {
    transform: translateY(0);
}

/* 页脚 */
.login-footer {
    margin-top: 32px;
    color: #a0aec0;
    font-size: 13px;
}

.login-footer-warnning {
    margin-top: 12px;
    color: #ff0000;
    font-size: 13px;
}

/* 提示框（保留原样） */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 24px;
    border-radius: 8px;
    color: #fff;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-size: 14px;
    z-index: 9999;
    animation: slideIn 0.3s ease, fadeOut 0.3s ease 2.7s;
}

.toast.success { background: #10b981; }
.toast.error { background: #ef4444; }

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes fadeOut {
    to { opacity: 0; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 手机适配 */
@media (max-width: 480px) {
    .login-card {
        padding: 32px 24px;
    }
    .logo-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 20px;
    }
    .logo-icon i {
        font-size: 28px;
    }
}